Repository navigation
Closed
Description
Summary
On the mobile app (Android/iOS), long-pressing an Agent terminal tab in the session header opens the action sheet with a Rename option (Rename Terminal modal). Submitting a new name returns accepted: true from terminal.rename, but the tab title in the mobile tab bar never changes.
Root Cause
- Mobile client updates
terminalsinstead ofsessionTabs(mobile/src/session/use-mobile-session-close-actions.ts):MobileSessionHeaderrendersvisibleTabs = sessionTabs(session.tabs.list), which is the UI authority for the mobile tab strip.handleRenameTerminalonly mutatedsetTerminals(...)and scheduledfetchTerminals()(terminal.list), never updatingsessionTabs(setSessionTabs/sessionTabsRef) or callingfetchSessionTabs().
- Host
projectRuntimeMobileSessionTabsshadowscustomTitlewith live Agent OSC titles (src/main/runtime/runtime-mobile-session-projection.ts):- When a desktop leaf is mounted (
liveLeaf !== null),const pty = liveLeaf ? null : ...forcespty = null(ignoringliveLeafPty.title), whileleafTitleis computed fromdisplayLeaf.paneTitleanddisplayLeaf.lastOscTitle(which hold the raw Agent OSC title such as"✳ Claude Code"or"Codex"). projectRuntimeMobileSessionTabsevaluatedtrackerOnlyTitle ?? leafTitle ?? ptyTitle ?? syncedTab?.title ?? tab.title, so any Agent terminal that emitted an OSC title short-circuited onleafTitle(ortrackerOnlyTitle) and ignored the user'scustomTitleinsyncedTab.title/tab.title.- Similarly,
buildTerminalSummary(src/main/runtime/orca-runtime-write-orchestration-pointer-pty.ts) passedtab?.titlewithupdatedAt: 0togetLatestLeafTitle, losing toleaf.paneTitleUpdatedAt/leaf.lastOscTitleAt.
- When a desktop leaf is mounted (
- Host
renameTerminalskips PTY title & snapshot updates on leaf-backed handles (src/main/runtime/orca-runtime-resolve-worktree-removal-target.ts):- When a handle is bound to a leaf (
record.tabIdis a tab UUID rather than'pty:...'),getLivePtyForHandle(handle)returnsnull, skippingpty.titleupdates,persistHeadlessTerminalTitle, andtouchMobileSessionSnapshotsForPty.
- When a handle is bound to a leaf (
Expected Behavior
- Renaming an Agent terminal tab from the mobile tab action sheet immediately updates the tab title in the mobile header (
sessionTabs) and persists acrosssession.tabs.listandterminal.listrefreshes. - Subsequent Agent OSC title updates (
working/permission/idlespinner frames) continue to updateagentStatusand preserve the Agent icon without overwriting the user's custom title. - Clearing the custom title restores the live Agent OSC title.
Metadata
Metadata
Assignees
Labels
No labels
Activity
AmethystLiang commentedon Oct 14, 2026
Thanks for reporting. Looking into it
zhangxaochen commentedon Oct 14, 2026
Hi @AmethystLiang, I've submitted PR #28713 to resolve this issue with test coverage. Feel free to review!