@@ -71,12 +71,12 @@ def _entry_text_blocks(entry: dict[str, Any]) -> list[str]:
7171def _fold_first_prompt (summary : SessionSummaryEntry , entry : dict [str , Any ]) -> None :
7272 """Replicate ``_extract_first_prompt_from_head`` for a single parsed entry.
7373
74- Mutates ``summary`` in place: sets ``first_prompt`` + ``first_prompt_locked``
75- on a real match, or stashes a ``command_fallback`` for slash-command
76- messages. Skips tool_result, isMeta, isCompactSummary, and auto-generated
77- patterns.
74+ Mutates ``summary`` in place: sets ``first_prompt`` +
75+ ``_first_prompt_locked`` on a real match, or stashes a
76+ ``_command_fallback`` for slash-command messages. Skips tool_result,
77+ isMeta, isCompactSummary, and auto-generated patterns.
7878 """
79- if summary .get ("first_prompt_locked " ):
79+ if summary .get ("_first_prompt_locked " ):
8080 return
8181 if entry .get ("type" ) != "user" :
8282 return
@@ -97,15 +97,15 @@ def _fold_first_prompt(summary: SessionSummaryEntry, entry: dict[str, Any]) -> N
9797 continue
9898 cmd_match = _COMMAND_NAME_RE .search (result )
9999 if cmd_match :
100- if not summary .get ("command_fallback " ):
101- summary ["command_fallback " ] = cmd_match .group (1 )
100+ if not summary .get ("_command_fallback " ):
101+ summary ["_command_fallback " ] = cmd_match .group (1 )
102102 continue
103103 if _SKIP_FIRST_PROMPT_PATTERN .match (result ):
104104 continue
105105 if len (result ) > 200 :
106106 result = result [:200 ].rstrip () + "\u2026 "
107107 summary ["first_prompt" ] = result
108- summary ["first_prompt_locked " ] = True
108+ summary ["_first_prompt_locked " ] = True
109109 return
110110
111111
@@ -181,8 +181,8 @@ def summary_entry_to_sdk_info(
181181
182182 first_prompt = (
183183 entry .get ("first_prompt" )
184- if entry .get ("first_prompt_locked " )
185- else entry .get ("command_fallback " )
184+ if entry .get ("_first_prompt_locked " )
185+ else entry .get ("_command_fallback " )
186186 ) or None
187187 custom_title = entry .get ("custom_title" ) or entry .get ("ai_title" ) or None
188188 summary = (
0 commit comments