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:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user