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:
parent
af7733f89f
commit
686f32929c
@ -32,6 +32,8 @@ export function handleSessionStatus(ctx: RunContext, payload: EventPayload, stat
|
|||||||
state.mainSessionIdle = false
|
state.mainSessionIdle = false
|
||||||
} else if (props?.status?.type === "idle") {
|
} else if (props?.status?.type === "idle") {
|
||||||
state.mainSessionIdle = true
|
state.mainSessionIdle = true
|
||||||
|
} else if (props?.status?.type === "retry") {
|
||||||
|
state.mainSessionIdle = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user