diff --git a/src/shared/agent-hook-listener/providers/codex-events.ts b/src/shared/agent-hook-listener/providers/codex-events.ts index c7624741c71..17b1a9f3c19 100644 --- a/src/shared/agent-hook-listener/providers/codex-events.ts +++ b/src/shared/agent-hook-listener/providers/codex-events.ts @@ -165,7 +165,7 @@ export function normalizeCodexEvent( state.codexSubagentRosterByPaneKey.delete(paneKey) state.codexSubagentTranscriptByPaneKey.delete(paneKey) } - if (agentId && transcriptPath) { + if (agentId && transcriptPath && eventName === 'PermissionRequest') { const transcriptState = getOrCreateCodexSubagentTranscriptState(state, paneKey) if (transcriptState.parent.filePath === transcriptPath) { reconcileCodexSubagentTranscript(