Repository navigation
Fix duplicate agent completion notifications after worktree switch - #5572
Conversation
Co-authored-by: Orca <[email protected]>
|
Ready to review this PR? Stage has broken it down into 4 individual chapters for you: Chapters generated by Stage for commit 0a935e3 on Jun 17, 2026 6:19am UTC. |
|
Caution Review failedAn error occurred during the review process. Please try again later. 📝 WalkthroughWalkthroughThe changes introduce completion "identity" tracking in 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…tablyai#5572) Co-authored-by: Orca <[email protected]>
Summary
Regression
The user-visible regression was exposed by
36277801e(June 13, 2026,Make remote hosts first class: concurrent multi-host workbench (#5071)). That change correctly allowed inactive-worktree hook completions to remain live during worktree switches, but it exposed an older coordinator-local dedupe gap: pane remounts lost the prior completion state, so stale hook/title completion replay could look like a newCodex finishedevent.Validation
pnpm vitest run --config config/vitest.config.ts src/renderer/src/components/terminal-pane/agent-completion-coordinator.test.tspnpm vitest run --config config/vitest.config.ts src/renderer/src/hooks/agent-hook-completion-notifications.test.tspnpm oxlint src/renderer/src/components/terminal-pane/agent-completion-coordinator.ts src/renderer/src/components/terminal-pane/agent-completion-coordinator.test.ts src/renderer/src/hooks/agent-hook-completion-notifications.test.tspnpm run typecheck:webgit diff --checkNote: local pnpm prints a Node engine warning because this shell is Node 26 while the repo requests Node 24; commands completed successfully.
Made with Orca 🐋