Repository navigation
Conversation
A manual terminal rename outranks the agent OSC title. Headless session projection treated any title without the agent glyph as the shell reclaiming the pane and dropped the hook provider session, so mobile chat had no transcript to open until the original title was restored. The rename now keeps that session when the pane's own OSC title is still an agent title. A shell that never reported a session still does not gain one.
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 6 remain after this review. 📝 WalkthroughWalkthroughThe runtime status builder now distinguishes a manual rename of an agent pane from a shell-reclaimed pane and bypasses shell-title suppression for that rename. Other non-agent titles retain the existing suppression check. Tests cover preserving an existing provider session after a rename and cases where a renamed pane has no provider session. Priority: ➖ Normal Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to The rename change preserves access to an existing transcript without changing the inspected shell-reclaim behavior. No actionable merge risk remains. Architecture SummaryArchitecture risk: 🔵 Low · up to The change affects 1 system. Changed systems: Architecture concerns Review detailsSystems and components
Before / after behavior
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Description checkExplanation The description explains the bug, fix, scope, regression trade-offs, linked issue, and test command. It does not follow the required template and omits the required Visual Proof section, testing checkboxes and platform coverage, checklist items, and other required headings. Resolution Update the description to include the template sections. Add before-and-after visual proof, or write N/A with a reason if no visual proof applies. Record manual testing, automated test updates, tested platforms, AI disclosure status, agent-skill boundary status, review notes, and checklist results.
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.
✅ No new issues found.
Reviewed changes
A targeted fix so a manual terminal rename no longer drops a headless mobile session's agent/chat identity.
src/main/runtime/runtime-mobile-agent-status-builder.ts:68-72— adds amanualTitleOverridesAgentOscguard that skips the shell-reclaim suppression when the pane's rawlastOscTitleis still an agent title and differs from the resolved latest title (i.e. a custompty.titleis newest).src/main/runtime/orca-runtime-hook-agent-status-projection.test.ts:282-355— a regression test for the rename case plus two negative guards (renamed shell pane; renamed pane whose hook row has noproviderSession).
I verified the regression test fails with the guard reverted and passes with it in place, and that the full two-file suite is green. The condition is sound: renameTerminal stamps titleUpdatedAt with Date.now(), which dominates the sequence-number timestamps OSC updates use, so after a rename the manual title is always "latest" and lastOscTitle is the only evidence that the agent still owns the pane. The guard reads exactly that, and because a reclaimed shell rewrites lastOscTitle to its own non-agent title, the #1437 suppression path is untouched. Mobile chat eligibility keys off agentStatus.agentType/providerSession (not terminalTitle), so keeping the session is what restores the transcript view.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
|
Thank you @innocarpe for this fix. Merged the adapted and native-verified change in #31358; Wooseong Kim [email protected] is credited with a Co-authored-by trailer in the merged squash commit 8bec732. Closing this superseded PR to keep one merged implementation. |

Description
Renaming a Claude pane with
orca terminal renameemptied the phone's chat until the original title was restored.A manual title replaced the agent's OSC title. Headless projection treated any title without the agent glyph as the shell taking the pane back and dropped the hook session, so mobile chat had nothing to open. The transcript file was still there.
The rename now keeps that session when the pane's own OSC title is still an agent title.
Focused fix
Preserves
Evidence
pnpm exec vitest run --config config/vitest.config.ts src/main/runtime/orca-runtime-hook-agent-status-projection.test.ts src/main/runtime/runtime-mobile-agent-status-builder.test.tsagentStatusis missing after the rename.User-regression-tradeoffs
Fixes #20626