Skip to content

Enable continuing remote CLI conversations in Chat UI - #33590

Closed
Zrzzzz wants to merge 1 commit into
stablyai:mainfrom
Zrzzzz:feat/remote-cli-chat-resume
Closed

Zrzzzz wants to merge 1 commit into
stablyai:mainfrom
Zrzzzz:feat/remote-cli-chat-resume

Conversation

@Zrzzzz

@Zrzzzz Zrzzzz commented Oct 25, 2026

Copy link
Copy Markdown

ELI5

A desktop client connected to an Orca server can continue a saved terminal conversation in Chat on that same server. The client no longer hides the action solely because the conversation is remote.

What Changed

  • Allow paired-runtime conversations through the terminal header/tab and Session History eligibility gates. Keep raw SSH relays, WSL recordings and unresolved owners excluded.
  • Require the recording server's advertised structured resume-history capability before offering the direct action.
  • Route adoption and conflict-owner reveal to the recording host. Send optional CLI-source identity only when that host advertises support.
  • Pin the host during asynchronous Session History preparation, provider selection, creation and workspace activation, including workspaces sharing an ID across hosts.
  • Document remote availability and the existing requirement to release a terminal writer before adopting its conversation.

Why

The existing host already owns the transcript and provides the import/ownership checks. Local-only renderer gates prevented paired clients from reaching that implementation. Reusing the host path avoids copying transcripts to the desktop or creating an unrelated local conversation.

Linked Issue

Fixes #29494.

Visual Proof

Generic before/after screenshots have been produced locally with hidden offscreen Electron and Playwright CDP, using the actual menu/header components, selectors, store and production CSS. The baseline loads the exact gate source from 55d12e13087; it has no Continue action. The changed component exposes Continue in Chat UI for the same remote state.

The screenshots are not uploaded to this PR yet, so it remains a draft. The rendered fixture proves action eligibility, not a live provider takeover. An attempted full paired fixture connected its isolated host/client, but did not establish a stable synthetic Claude session; it is not counted as a passing takeover test.

Testing

  • 11 focused suites / 163 tests passed, covering local and remote action resolution, git and folder workspaces, missing capabilities, mismatched hosts, async host-selection changes, conflict-owner routing, source admission, CLI writer ownership and adoption replay.

  • Full renderer typecheck passed using the native compiler.

  • Changed-code quality gate passed, including type-aware checks, React Doctor, design-system checks and ast-grep.

  • Electron E2E-mode application build passed.

  • Hidden Electron component rendering compared baseline and changed code.

  • No live external model request or user conversation takeover was performed. Physical macOS/Windows interaction has not been validated for this branch.

  • Manually tested a real paired provider conversation end to end

  • Automated regression tests added/updated

AI Disclosure

Implementation, testing and review assisted by OpenAI Codex.

Review

Reviewed host ownership, mixed-version capability handling and the existing no-local-fallback behavior. The terminal writer inspection remains authoritative: this change never kills a running CLI to make adoption succeed.

Agent skill upstream boundary

  • Not applicable; no upstream skill-installer content copied.

Notes

No server RPC or protocol change. This enables desktop entry points and leaves mobile's own UI unchanged. A host without history-resume support does not get the action. A host with history-resume but without optional CLI-source support uses the existing provider-identity lookup. No private conversation data, case paths or screenshots are included.

Checklist

  • Single feature scope
  • Explained what changed and why
  • Before/after screenshots uploaded
  • Self-reviewed correctness, security and host ownership
  • Considered paired hosts, older servers, folder workspaces and platform restrictions
  • Full lint/test/build platform matrix; focused verification listed above

@nwparker

Copy link
Copy Markdown
Contributor

Thank you @Zrzzzz for #33590. Your approach landed in #33954, with your commit kept under your authorship. It opens the terminal header, tab menu and Session History gates to paired-runtime conversations, requires the host's resume-history capability, routes adoption and the conflict-owner reveal to the recording host, and pins that host through the History launch. On top of it we made three changes:

  • We translate the pane key into the host's own form before sending cliSource. The desktop's mirrored key never matched the host's rows, so the create was refused.
  • We scope in-flight resume launches by host, so two hosts with the same conversation id can't join each other's launch.
  • An older server now shows a disabled "update the host" state instead of nothing.

Thanks for the careful mixed-version handling!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants