Skip to content

[Bug]: Renamed terminal tab loses its name on Orca Mobile after the host restarts #33737

Closed

Description

@clayphi

Operating system

Linux

Orca version

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:

  1. Run a headless host (orca serve) and pair Orca Mobile with it.
  2. In Orca Web, rename a terminal tab, for example to brain. The phone shows brain.
  3. Restart the host (stop and start orca serve, or restart the machine or container).
  4. 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

  1. added
    os:linux
    on Oct 26, 2026
  2. added a commit that references this issue on Oct 27, 2026
    9dd4471
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    mobileos:linux

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions