Repository navigation
Description
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>:6768With the Electron host, these steps work on A:
ssh.addTargetthrough the runtime RPC succeeds.ssh.connectsucceeds. A deploys managed orcad on B, andssh.getStatereturnsstatus: "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:
- Add existing folder on host B fails with:
Cannot read properties of undefined (reading 'repo') - Clone on host B fails with:
But at the same time, A reports the target as
SSH connection "ssh-1792835182108-jfw5c1" not found or not connectedconnected. - 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.
src/main/ssh/ssh-host-server-on-connect.ts: "Every host runs managed orcad". Every SSH host becomes a managed runtime, and no option turns this off.src/main/providers/ssh-host-not-served-error.ts: "A managed host is reached asruntime:<env>". Work routed tossh:<target>fails withSSH connection "…" not found or not connected.src/renderer/src/store/projects/project-host-setup-actions.ts#L255-L261:setupProjectClonethrows for everyssh:host before it calls the paired server.src/renderer/src/store/projects/project-host-setup-actions.ts#L40-L63:setupProjectExistingFoldersendsprojectHostSetup.setupExistingFolderto A and readsresult.repowithout a check. A returns noresultfor its SSH host, so the client gets aTypeErrorinstead of an error message.
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 managedruntime:<env>for paired clients. Then project setup, worktree creation and project discovery on host B go through A, and projects that A registered onruntime:<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 servewithORCA_SERVE_RUNTIME=electronunderxvfb-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.addTargeton A.
Activity
fix(projects): keep the desktop's SSH refusal copy and drop a re-export
fix(projects): give the server refusal only for a paired server's SSH…
AmethystLiang commentedon Oct 25, 2026
looking into it
fix(projects): refuse project setup on a paired server's SSH host wit…