Repository navigation
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughAdds a shared terminal-title agent-type resolver and uses it in tab-agent resolution and terminal notification dispatch. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
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 |
There was a problem hiding this comment.
Actionable comments posted: 2
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: ed22d0fc-26aa-4a1f-839a-559d1dba0a36
📒 Files selected for processing (5)
src/renderer/src/components/terminal-pane/use-notification-dispatch.test.tssrc/renderer/src/components/terminal-pane/use-notification-dispatch.tssrc/renderer/src/lib/terminal-title-agent-type.tssrc/renderer/src/lib/use-tab-agent.test.tssrc/renderer/src/lib/use-tab-agent.ts
|
I addressed the CodeRabbit follow-up by tightening the stale notification guard and adding the missing MiMo Code mapping; I also tested it locally with the focused Vitest suites and typecheck:web, and everything passed. |
- let explicit terminal identity override stale launchAgent metadata once the pane shows newer activity - stop reusing fresh-but-stale agent completion snapshots when the current title names a different agent - extract shared terminal-title agent identity parsing to keep tab icon and notification logic aligned - add regressions covering Codex -> Claude pane reuse for both tab branding and completion notifications
- require matching agent type before reusing explicit-title snapshots - map MiMo Code titles to the MiMo agent id
- add a typed helper for reading notification dispatch mock calls - keep agent snapshot regression tests passing under web typecheck
|
Thanks for the fix and tests. We landed the maintainer rewrite in #6543, which covers the same stale pane identity issue plus an additional notification snapshot guard, so I’m closing this as superseded. |
Summary
Fixes #6355 by preventing stale Codex branding from sticking to a pane after it is reused by another agent.
launchAgentmetadata after newer activity is observedScreenshots
Testing
pnpm lintpnpm typecheckpnpm testpnpm buildRan:
node config/scripts/ensure-native-runtime.mjs --runtime=node.\node_modules\.bin\vitest.cmd run --config config/vitest.config.ts src/renderer/src/lib/use-tab-agent.test.ts src/renderer/src/ components/terminal-pane/use-notification-dispatch.test.tsAI Review Report
Reviewed stale agent identity reuse across tab icons and completion notifications. Main risk was Codex metadata outliving the original session and being shown for Claude. Added shared title parsing and regressions for Codex -> Claude pane reuse. Cross-platform impact checked; no platform-specific shortcut, path, shell, or Electron behavior was changed.
Security Audit
Low risk. Reviewed terminal-title parsing, stored agent snapshot selection, and notification dispatch. No new command execution, path handling, auth, secrets, or IPC surface was added.
Notes