From f958f687e2541c5e5b1d595eff910c31b6079bef Mon Sep 17 00:00:00 2001 From: Brennan Benson <79079362+brennanb2025@users.noreply.github.com> Date: Fri, 18 Sep 2026 02:57:51 -0400 Subject: [PATCH] perf(agent-status): avoid reads for Codex child activity --- src/shared/agent-hook-listener/providers/codex-events.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(