Repository navigation
Conversation
Nested child process and title signals no longer rebrand a tab while launch ownership is still active; reclaim only after the parent exits. Fixes #13341.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
🚧 Files skipped from review as they are similar to previous changes (5)
📝 WalkthroughWalkthroughThe change centralizes tab-agent signal resolution in 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ Finishing Touches 💡 1📝 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 |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/renderer/src/components/sidebar/worktree-title-derived-agent-rows.ts (1)
206-214: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueShorten the ownership comments.
Lines 206-214 use nine lines for two rules. Keep the detector rationale and ownership rule in one concise line each.
Proposed change
- // Why: Claude's task-title spinner heuristic has no provider identity. In - // split panes it can match arbitrary terminal spinners, so sidebar rows only - // accept Claude when the title itself names Claude. + // Require a Claude token because the spinner heuristic is provider-neutral. ... - // Why (`#8940` + `#13341`): Claude mentions never steal ownership, and a nested - // Claude identity frame under a durable non-Claude owner keeps the parent. - // Pane reuse is modeled by clearing launchAgent first (tab-agent path). + // Preserve a non-Claude owner; launch ownership clears before pane reuse can reclaim identity.Source: Coding guidelines
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 7cb2c26e-2abc-4e45-bc7b-db34ff9c637a
📒 Files selected for processing (8)
src/renderer/src/components/sidebar/worktree-title-derived-agent-rows.test.tssrc/renderer/src/components/sidebar/worktree-title-derived-agent-rows.tssrc/renderer/src/lib/tab-agent-from-signals.tssrc/renderer/src/lib/use-tab-agent-nested-identity.test.tssrc/renderer/src/lib/use-tab-agent-pi-identity.test.tssrc/renderer/src/lib/use-tab-agent-process-signals.test.tssrc/renderer/src/lib/use-tab-agent.test.tssrc/renderer/src/lib/use-tab-agent.ts
Update CI-failing expectations for #13341 (process/title no longer reclaim under active launch), add shell/remote/hook edge cases, and use an agent-attributable working title in WorktreeCard status coverage.
Native OC| titles reclaim and stay OpenCode after process observation, with sidebar title-derived rows matching tab identity. Nested Claude/Codex still fenced while launch is active (#13341).
|
Two new reports, #14937 and #14938, exercise the same ownership boundary through task-text titles rather than an actually nested child process. I do not plan to open a competing fix because this PR already changes both affected consumers:
The exact regressions worth adding before refresh are:
Those cases distinguish a foreign-agent word inside free-form task text from a real identity frame and would let this PR close both new reports without another overlapping implementation. #14634 is also introducing the shared |
Summary
tab-agent-from-signals.tsfor max-lines.Evidence (repro vs durable identity)
OC |at startup before hooksDisplay-status / model updates on fenced parent hooks remain separate (#13602); this PR only fences durable identity (tab/sidebar agent type icon).
Test plan
vitest: use-tab-agent, nested-identity, pi-identity, process-signals, worktree-title-derived-agent-rows (94 tests)oxlinton touched filesgit diff --checkFixes #13341