Skip to content

[Feature]: orca serve — persist host terminal sessions across client reconnect #4637

Description

@kzarzycki

Running the runtime headless via orca serve and pairing a desktop/web client into it: when the client restarts or the connection drops and I reconnect, every terminal is gone — open shells, running processes, scrollback. The reconnected tabs come back as fresh shells.

The SSH-connected remote model already solves this — the relay daemon keeps PTYs alive and reattaches on reconnect (#985, #2248). orca serve as the host has no equivalent: its local terminals do not survive a client disconnect.

Desired behavior

  • Terminals in serve mode keep running on the host when the client disconnects.
  • On reconnect, the client reattaches to the existing shells with state and scrollback intact.
  • Surviving a serve restart too would be ideal; reattach-on-reconnect is the core ask.

The reattach + replay machinery already exists for the SSH path but is gated to desktop and skipped under serve. Extending it (or a daemon-backed terminals option for serve) would close the gap.

Workaround today

Wrap every terminal in tmux on the host — works, but it is what serve should do itself, and it loses the in-pane shell integration.

Related: #4280, #4501 (first-class headless/server mode).

Activity

  1. self-assigned this
    on Jun 4, 2026
  2. added theissue type on Jul 12, 2026
  3. added
    orca-remote-server
    on Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

orca-remote-server

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions