Skip to content

[Bug]: "Resume in New Native Chat" is never offered for terminal panes on a remote runtime server, leaving desktop clients no way to move a running agent into Chat UI #29494

Closed

Description

@zhibisora

What happened

After #27184 replaced the pane header's "Show chat view" with "Resume in New Native Chat", a macOS desktop client connected to a remote orca serve shows no chat button on Claude terminal panes, even though Claude is running in the active pane and agent status reports agentType: claude with a provider session. Combined with the removal of the old view switch, a desktop client on a remote server now has no way to bring an existing terminal conversation into Chat UI.

Setup

  • Server: orca serve 1.4.227 (official .deb, Ubuntu 24.04 x64), run under systemd, paired over Tailscale
  • Client: Orca desktop on macOS, connected to that server as a runtime environment
  • Agent: Claude Code, launched in a terminal tab inside a worktree hosted on the server

Repro

  1. Pair a macOS desktop with a headless orca serve on another machine.
  2. Open a worktree on that server and start Claude in a terminal tab.
  3. Focus the pane while Claude is running → no "Resume in New Native Chat" button in the pane header.

Cause (from source at 7005af3)

canPaneOfferResumeInNewChat gates the button on canHostOfferTabSessionMove('cli', hostScope):

export function canPaneOfferResumeInNewChat(
state: AppState,
pane: { worktreeId: string; paneKey: string }
): boolean {
const conversation = resolvePaneAgentConversation(state, pane, adoptsCliConversations)
if (!conversation) {
return false
}
const hostScope = resolveAiVaultHostScopeDefaults(
getAiVaultResumeWorkspaceExecutionHostId(state, conversation.worktreeId),
conversation.worktreeId
).defaultExecutionHostScope
// The row gate's launch-route half, so a project the chat route refuses (WSL, repair) hides it.
return (
canHostOfferTabSessionMove('cli', hostScope) &&
structuredAgentSessionLaunchFeasible(state, {
agent: CLI_CONVERSATION_ADOPTING_AGENTS[conversation.agent],
workspace: {
kind: workspaceKindForWorktreeId(conversation.worktreeId),
worktreeId: conversation.worktreeId
},
settings: state.settings
})
)
}

if (hostScope === LOCAL_EXECUTION_HOST_ID) return true
// Resume-in-chat refuses any row not recorded on this machine. ...
return kind === 'chat' && parseExecutionHostId(hostScope)?.kind === 'runtime'

function canHostOfferTabSessionMove(
kind: TabSessionHistorySubject['kind'],
hostScope: ExecutionHostScope
): boolean {
if (hostScope === LOCAL_EXECUTION_HOST_ID) {
return true
}
// Resume-in-chat refuses any row not recorded on this machine. A chat's row is owned only where an
// Orca host projects chat ownership: this machine or a runtime server, never an SSH relay.
return kind === 'chat' && parseExecutionHostId(hostScope)?.kind === 'runtime'
}

For a worktree on a runtime server, the host resolves to runtime:<env> (getAiVaultResumeWorkspaceExecutionHostId → resolveAiVaultHostScopeDefaults), so the 'cli' case always returns false. That makes the remote-runtime case unreachable by design, not by a transient state.

Expected

Either offer terminal → native chat on runtime servers (the server already advertises agent-session.structured.* and owns the transcript), or keep a working terminal/chat switch for remote runtimes until that exists.

Possibly the same underlying report as #29256 (remote server, desktop can't switch; mobile can).

Activity

  1. AmethystLiang commented on Oct 18, 2026

    @AmethystLiang
    Contributor

    looking into it

  2. Ceasy commented on Oct 19, 2026

    @Ceasy

    Same here on orca serve 1.4.230 (deb, Ubuntu, systemd) with a desktop client 1.4.230.
    It is not only the pane header: Agent Session History rows for sessions on the runtime
    server never offer "Resume in New Native Chat" either. resolveAiVaultSessionResumeInChatEligibility
    returns 'remote' for any executionHostId !== 'local'
    (src/renderer/src/components/right-sidebar/ai-vault-session-resume-in-chat.ts).
    So with all agents on a paired server there is no way to continue an existing
    conversation in Chat UI: no header button, no history action, no /resume in chat.

  3. nwparker commented on Oct 26, 2026

    @nwparker
    Contributor

    Thanks for the request, @zhibisora. Shipped in #33954, building on a community contribution in #33590: you can now continue a CLI conversation running on a paired Orca server in the Chat UI, from the terminal pane header, the tab menu, or Agent Session History. If the server is too old to support it, the button stays visible but disabled, with a note to update Orca on that server.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions