You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Renamed terminal tab loses its name on Orca Mobile after the host restarts #33737
v1.4.237 (headless orca serve host). The same code is still on main (1ff73e8), after v1.4.240.
Details
Short summary:
A terminal tab renamed in Orca Web (right-click, change title) shows the new name on the paired Orca Mobile app, but after the host restarts the phone shows the terminal's own title instead (for Claude Code, its conversation title). Orca Web still shows the renamed name, and the saved workspace session still holds it (customTitle on the tab).
How to reproduce:
Run a headless host (orca serve) and pair Orca Mobile with it.
In Orca Web, rename a terminal tab, for example to brain. The phone shows brain.
Restart the host (stop and start orca serve, or restart the machine or container).
Reconnect Orca Web, then open the workspace on the phone. The tab shows the terminal's own title, not brain.
What happens in the code:
After the restart, when the web client reconnects, the host restarts each saved tab's terminal for it (restored-pane-materialize.ts → createRuntimeOwnedMobileSessionTerminal in mobile-terminal-owned-create.ts) and builds the mobile row from the new terminal. That row never gets a customTitle: it does not read one from the saved session, and it does not even keep one from an existing mobile row for the same tab. Later rebuilds from the saved session keep that existing row (mergeMobileSessionSnapshotTabs), so the name never comes back. publishPtyBackedMobileSessionTerminal has a narrower version of the same gap: it keeps a name only from an earlier mobile row, which a restart does not have.
Expected: the phone keeps showing the tab's saved name after a restart, as Orca Web does. A name that was cleared stays cleared.
I have a small fix with tests (both builders fall back to the tab's saved name through one helper; a value already on the mobile row, including a cleared null, still wins) and will open a PR that links this issue.
Activity
fix(mobile): keep a renamed tab's name on mobile after the host resta…