perf(agent-status): avoid reads for Codex child activity

This commit is contained in:
Brennan Benson
2026-09-18 02:57:51 -04:00
parent 37edc44e07
commit f958f687e2
@@ -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(