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