Skip to content

Preserve parent agent identity for nested hooks - #3990

Merged
AmethystLiang merged 1 commit into
mainfrom
fix-agent-status-codex-claude-confusion
May 31, 2026
Merged

AmethystLiang merged 1 commit into
mainfrom
fix-agent-status-codex-claude-confusion

Conversation

@AmethystLiang

Copy link
Copy Markdown
Contributor

Summary

  • Adds shared agent-status identity resolution so nested child hooks that inherit a parent pane key do not steal the pane's visible agent identity.
  • Suppresses inherited child done statuses while the parent agent is still active, with stale and prior-done cases still allowing identity changes.
  • Applies the guard in main hook ingestion, renderer IPC handling, and the agent-status store, plus coverage for local, remote, and tab-agent identity behavior.

Testing

  • Added/updated tests in src/main/agent-hooks/server.test.ts, src/renderer/src/hooks/useIpcEvents.test.ts, src/renderer/src/lib/use-tab-agent.test.ts, and src/renderer/src/store/slices/agent-status.test.ts.

- Keep active pane agent type when child CLIs inherit the parent pane key
- Ignore nested child done events so parent Codex turns stay visibly active
- Share identity resolution across main and renderer with regression tests
@AmethystLiang
AmethystLiang merged commit 2e1ffe0 into main May 31, 2026
2 checks passed
@nwparker nwparker added the risk:high High risk change label May 31, 2026
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
- Keep active pane agent type when child CLIs inherit the parent pane key
- Ignore nested child done events so parent Codex turns stay visibly active
- Share identity resolution across main and renderer with regression tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk:high High risk change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants