Repository navigation
Prevent tab icons from briefly showing the wrong agent - #5860
Conversation
|
Ready to review this PR? Stage has broken it down into 5 individual chapters for you: Chapters generated by Stage for commit 1e2556f on Jun 20, 2026 1:04am UTC. |
fc02231 to
1e2556f
Compare
|
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 (6)
📝 WalkthroughWalkthroughFour new exported functions ( 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
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 |
Summary
launchAgent.remote:PTYs as remote-like for foreground polling and makes web-session mirroredlaunchAgenthost-authoritative.Design Review
/tmp/orca-tab-agent-identity-design.md.launchAgent; title identity is legacy fallback only; remote/runtime paths may keep completed-hook fallback when foreground polling is unavailable.Implementation Notes
tab-agent.tsnow exposes focused/sibling resolvers for live and completed hook identity.use-tab-agent.tsignores title identity whilelaunchAgentexists, suppresses generic Claude status prefixes, avoids arbitrary split-pane PTY foreground sampling when focus is unknown, and distinguishes remote-like runtime PTYs from local PTYs.web-session-tabs-sync.tsno longer resurrects stale mirroredlaunchAgentwhen the host snapshot omits it.Completeness Verification
remote:PTYs, missing-layout fallback PTYs, and sibling completed-hook cleanup.Code Review Loop
remote:PTY and missing-layout PTY edge cases; fixed.Brennan Test Changes
main: landable./Users/thebr/orca/workspaces/orca/runner; identity verified as branchbrennanb2025/codex-tab-icon-flashand the correct root.demo-projectat/Users/thebr/source/repos/Stably/demo-project; no Orca repo/project data was used as the target./tmp/orca-tab-agent-validation.hiTiXa/screenshots/tab-agent-icons-start.png/tmp/orca-tab-agent-validation.hiTiXa/screenshots/tab-agent-icons-end.pngManual Runtime Evidence
launchAgent: codexrendered Codex, not Claude.✳ Claude Coderendered Claude.remote:web-env-1@@terminal-1skipped foreground polling and used completed-hook fallback.launchAgentwhen the host snapshot omitted it.Tests
pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/lib/use-tab-agent.test.ts src/renderer/src/lib/tab-agent.test.ts src/renderer/src/runtime/web-session-tabs-sync.test.ts src/renderer/src/lib/agent-status.test.tspnpm run typecheck:webpnpm run typecheckpnpm run lintoxlintgit diff --checkPost-PR Stabilization
track-community-prpassed, no CodeRabbit reviews/comments had posted, but the PR conflicted withmain.origin/main, resolved a localization-catalog conflict by keepingmain's translated value, reran focused tests, full typecheck, full lint, and diff hygiene, then force-pushed with lease.CLEAN),verifypassed, no PR reviews, no inline review comments, and no CodeRabbit comments. Only Stage’s non-actionable chapter summary is present.Assumptions / Gaps
web-env-1unknown-environment error from a fake remote PTY.