fix(cli-run): rely on continuation markers for completion

Use hook-written continuation marker state to gate run completion checks and remove the noisy event-stream shutdown timeout log in run mode.
This commit is contained in:
YeonGyu-Kim
2026-02-17 17:50:47 +09:00
parent 706ee61333
commit d0bd24bede
19 changed files with 401 additions and 74 deletions
+3
View File
@@ -13,6 +13,8 @@ export interface EventState {
currentAgent: string | null
/** Current model ID from the latest assistant message */
currentModel: string | null
/** Current message role (user/assistant) — used to filter user messages from display */
currentMessageRole: string | null
}
export function createEventState(): EventState {
@@ -27,5 +29,6 @@ export function createEventState(): EventState {
messageCount: 0,
currentAgent: null,
currentModel: null,
currentMessageRole: null,
}
}