From 686f32929cee4dbcd992ff150abe38579161d894 Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Wed, 11 Feb 2026 00:44:53 +0900 Subject: [PATCH] fix(cli-run): handle retry status type as non-idle in event handlers Session status 'retry' was unhandled, leaving mainSessionIdle=true during retries which could cause premature completion detection. --- src/cli/run/event-handlers.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cli/run/event-handlers.ts b/src/cli/run/event-handlers.ts index c12d3b042..24b9a30c6 100644 --- a/src/cli/run/event-handlers.ts +++ b/src/cli/run/event-handlers.ts @@ -32,6 +32,8 @@ export function handleSessionStatus(ctx: RunContext, payload: EventPayload, stat state.mainSessionIdle = false } else if (props?.status?.type === "idle") { state.mainSessionIdle = true + } else if (props?.status?.type === "retry") { + state.mainSessionIdle = false } }