fix(agent-status): preserve Codex escape interruption (#14372)

This commit is contained in:
Brennan Benson
2026-08-13 16:19:26 -07:00
committed by GitHub
parent a27d046e5e
commit c3b8c145e2
5 changed files with 144 additions and 43 deletions
+4 -1
View File
@@ -448,7 +448,7 @@ function isToolProgressWorkingAfterInterrupt(next: AgentHookEventPayload): boole
if (next.payload.state !== 'working') {
return false
}
if (next.payload.agentType !== 'claude') {
if (next.payload.agentType !== 'claude' && next.payload.agentType !== 'codex') {
return false
}
// Why: a same-prompt retry is another UserPromptSubmit, while late post-Ctrl+C progress arrives as tool lifecycle work.
@@ -1260,6 +1260,9 @@ export class AgentHookServer {
(effectivePayload.hasExplicitPrompt !== true &&
Date.now() - previous.receivedAt <= INTERRUPTED_DONE_LATE_WORKING_SUPPRESSION_MS))
) {
if (effectivePayload.payload.agentType === 'codex') {
markCodexLeadTurnInterrupted(this.state, effectivePayload.paneKey)
}
return previous
}
if (