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.
This commit is contained in:
YeonGyu-Kim
2026-02-11 00:44:53 +09:00
parent af7733f89f
commit 686f32929c

View File

@@ -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
}
}