Skip to content

[Bug]: Headless server (Electron host): projects cannot be set up on its SSH hosts from a paired client #33124

Closed

Description

@JargeZ

Operating system

Linux

Orca version

v1.4.239

Details

Found while looking for workarounds for #29593.

Context

The topology is the same as in #29593:

Desktop / web client ── pairing ── Orca server A (orca serve, headless) ── SSH ── recipe VM B

The default orcad runtime rejects ssh.addTarget ("This Orca server runs without the desktop app, so it can't manage SSH hosts yet"). As #26348 describes, I start A with the Electron host:

ORCA_SERVE_RUNTIME=electron xvfb-run -a orca-ide serve --port 6768 --pairing-address ws://<lan-ip>:6768

With the Electron host, these steps work on A:

  • ssh.addTarget through the runtime RPC succeeds.
  • ssh.connect succeeds. A deploys managed orcad on B, and ssh.getState returns status: "connected", managedServer: { kind: "managed", environmentId: "<env>" }.
  • orca project setup-existing-folder --host runtime:<env> --path /home/dev/<repo> on A registers the folder in the registry of B's managed runtime. orca repo list --environment <env> shows it.

So A can own the SSH host. The remaining gap is on the client side.

Problem

The paired client sees B as host ssh:<target-id> of A. On that host, I cannot add or select the project:

  1. Add existing folder on host B fails with:
    Cannot read properties of undefined (reading 'repo')
    
  2. Clone on host B fails with:
    SSH connection "ssh-1792835182108-jfw5c1" not found or not connected
    
    But at the same time, A reports the target as connected.
  3. When I create a worktree, the client lets me select host B. But the project that A registered on runtime:<env> does not show for it.

The same command on A from the CLI also fails:

orca project setup-existing-folder --project git:gitlab.com/<group>/<repo> \
  --host ssh:ssh-1792835182108-jfw5c1 --path /home/dev/<repo> --kind git --json
# {"ok":false,"error":{"code":"runtime_error","message":"SSH connection \"ssh-1792835182108-jfw5c1\" not found or not connected"}}

What I found in the source

The links point to v1.4.239. The referenced code is the same in v1.4.235.

My interpretation: on the client, A's SSH host keeps the ssh:<target> form, but A serves it only as runtime:<env>. The client has no route to runtime:<env>, because its endpoint is a tunnel on A (ws://127.0.0.1:<port>).

Expected

One of these:

  • A maps ssh:<target> to its managed runtime:<env> for paired clients. Then project setup, worktree creation and project discovery on host B go through A, and projects that A registered on runtime:<env> show for host B on the client.
  • Or, if this is not supported yet: a clear error such as "projects on SSH hosts of a headless server are not supported", not Cannot read properties of undefined (reading 'repo').

The first option is the minimal client part of #29593. The SSH host side already works on the Electron host.

Environment

  • Server A: Orca 1.4.235 and 1.4.239 (the problem occurs on both), Linux AppImage (extracted), orca serve with ORCA_SERVE_RUNTIME=electron under xvfb-run, in a container (Fedora, rootless Podman). Also seen on a Fedora host.
  • Client: <client version>, desktop and web client.
  • Host B: Debian container with sshd, created by an orca-recipes recipe, added through ssh.addTarget on A.

Activity

  1. added theissue type on Oct 24, 2026
  2. added
    bug
    on Oct 24, 2026
  3. added
    os:linux
    on Oct 24, 2026
  4. AmethystLiang commented on Oct 25, 2026

    @AmethystLiang
    Contributor

    looking into it

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

Metadata

Metadata

Assignees

Labels

bugos:linux

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions