Skip to content

[Bug]: Remote client can't create workspaces on a server-owned SSH project #25887

Closed

Description

@seonjunn

Operating system

macOS

Orca version

client v1.4.221 (macOS), server v1.4.219 (Linux)

Details

Summary

A desktop client paired to a Remote Orca Server cannot create workspaces in a project that lives on one of the server's SSH targets. The UI always says "Reconnect SSH target before creating workspaces", even though the server reports the target as connected. The same operation succeeds through the CLI (--environment), and the mobile app can open terminals there.

Environment

  • Server: Orca 1.4.219 desktop app on Linux, owns SSH target dike (orca host list on the server: ssh target dike linux connected)
  • Client: Orca 1.4.221 on macOS, server added under Remote Orca Servers, Advanced → Active Server = that server
  • Project dike was created on the server with Host = the SSH target; its repo has connectionId: ssh-… (the server's target id)

Steps to reproduce

  1. On the server, add an SSH target and create a project on it.
  2. On the client, open the sidebar project header + for that project (or New Workspace with that project).
  3. Restarting the client does not change anything.

Expected

The workspace is created on the server's SSH target, the same as when the server's own UI or the client's CLI does it.

Actual

The UI blocks with "Reconnect SSH target before creating workspaces" (ko: "워크스페이스를 만들기 전에 SSH 대상을 다시 연결하세요"). There is no reconnect action that clears it. Meanwhile:

  • orca worktree create --environment <server> --repo id:<repo> --name x from the client succeeds, and the worktree appears in the client's sidebar.
  • orca terminal create --environment <server> --worktree path:<remote path> succeeds.
  • Opening a new terminal in that workspace from the mobile app succeeds.

Cause (from reading the source at a2f197f)

The create gates read the client's local SSH map, which never contains server-owned target ids:

  • src/renderer/src/components/sidebar/worktree-list/rows/SectionHeader.tsx: sshStatus: ctx.sshConnectionStates.get(row.repo.connectionId)?.status → getRepoHeaderCreateState → getSelectedRepoSshGate
  • src/renderer/src/hooks/composer-state/composer-target-store.ts / runtime-target-selection.ts: sshConnectionStates.get(selectedRepoConnectionId)

Terminal panes already use the runtime-aware selectors (selectRuntimeAwareSshStatus in lib/worktree-host-connection-phase.ts, fed by runtime/runtime-environment-ssh-state.ts), so existing terminals on that host work. Only creation is blocked.

Related: in the client's "Run on" list, a server's SSH targets only appear once a project already exists on them (buildExecutionHostRegistry adds SSH hosts from client-owned targets or from repo connectionIds, with health taken from the same client-local map). The first project on a server SSH target therefore has to be created in the server's own UI.

Suggestion

For repos owned by a runtime environment, resolve the SSH gate with the runtime-aware status (selectRuntimeAwareSshStatus(state, environmentId, targetId)) in SectionHeader and the composer target store, as the terminal pane already does.

Activity

  1. added
    os:macos
    on Oct 6, 2026
  2. AmethystLiang commented on Oct 6, 2026

    @AmethystLiang
    Contributor

    Thanks for reporting. Looking into it

  3. self-assigned this
    on Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

os:macos

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions