Repository navigation
Description
Operating system
- Client: macOS (Orca 1.4.180 desktop)
- Remote: macOS (Mac Mini over Tailscale). Homebrew Node v26.3.0 at
/opt/homebrew/bin/node.
I do not have the remote sw_vers in this report; can add if needed.
Orca version
v1.4.180
Details
Short summary
SSH Test succeeds. Connect sits on Deploying relay… / Workspace sync unavailable, then the host can flip to Disconnected. The SSH handshake is not the failure. The remote native probe (require("node-pty")) does not finish.
Related, different failure modes:
- [Bug]: Direct SSH: updating Orca strands all remote terminals and running agent sessions (relay version swap) #13852 — same client version and same new relay hash
0.1.0+bd3ec370d21d. First reconnect after an app update deploys a new version-pinned relay. Their host was Linux; terminals were stranded. Our host is Darwin; the new relay never comes up. - SSH relay: pre-bundle node-pty per platform (VS Code-style) to eliminate npm install on remote #1693 — remote native install/probe is a known fragile class, and Node 26 is mentioned there. Node 26 is environment here, not the cause we measured. The same Node 26 loads the old relay path instantly.
What happened
Laptop Orca → Mac Mini (user@host:22, IdentityFile ~/.ssh/id_ed25519).
- Settings → SSH Hosts → Test: OK
- Connect: status
Deploying relay…. Settings later showed Disconnected. Sidebar remotes asked to reconnect the SSH target before creating a workspace. - Plain
sshto the same host works.
On the Mini, Orca had uploaded ~/.orca-remote/relay-0.1.0+bd3ec370d21d (no .install-complete, leftover .install-lock) and left this running:
export PATH='/opt/homebrew/bin':$PATH
cd ~/.orca-remote/relay-0.1.0+bd3ec370d21d
node -e 'require("node-pty"); require("node-pty/lib/utils").loadNativeModule("pty"); require("@parcel/watcher")'The process never printed ORCA-NPTY-PROBE-OK or ORCA-NATIVE-DEPS-MISSING:…. .npty-probe.stderr stayed 0 bytes. Retries left extra hung node processes.
The previous relay 0.1.0+576ecd9bd42d had .install-complete and had been working. It shut down cleanly around the upgrade/redeploy.
Measurements
pty.node in the old and new relay dirs is the same SHA-256. package.json, lib/index.js, and lib/utils.js also match.
Leftover diagnostic node PIDs that had the new pty.node mapped were killed first. After that, the hang on the new path still reproduced.
| Action | Result |
|---|---|
require("node-pty") from old relay dir (same Node 26) |
returns immediately |
process.dlopen of old pty.node path |
OK |
require("node-pty") from new relay dir |
hangs (8s alarm; no stdout) |
process.dlopen of new pty.node path |
hangs |
process.dlopen of a /tmp copy of the same bytes |
hangs |
loadNativeModule("pty") is not required for the hang — the first require("node-pty") is enough.
Clearing xattr on the new pty.node did not change the hang.
Hard-linking the already-used old pty.node and @parcel/watcher-darwin-arm64/watcher.node onto the new paths made the official probe print ORCA-NPTY-PROBE-OK. Connect then started the new relay:
ORCA-RELAY v0.1.0 READY
Handshake OK from version=0.1.0+bd3ec370d21d
Socket client accepted
How to reproduce
Not a clean one-box recipe. What we actually had:
- macOS client 1.4.180, macOS remote with Homebrew Node 26, and an existing working
~/.orca-remote/relay-0.1.0+<old>. - Orca update that changes the bundled relay hash (observed
576ecd9bd42d→bd3ec370d21d, same swap as [Bug]: Direct SSH: updating Orca strands all remote terminals and running agent sessions (relay version swap) #13852). - Settings → SSH Hosts → Test (succeeds) → Connect.
- UI stays on
Deploying relay…with no probe timeout. On the remote,psshows theORCA-NPTY-PROBE-OKnode command stuck inrequire("node-pty").
Unknown: a first-time Mini with only the new relay dir and no previously mapped inode. The /tmp copy hang suggests a brand-new vnode of these bytes can hang even outside ~/.orca-remote.
Expected
If the native probe cannot finish, Connect should fail in bounded time with a visible error, not sit on Deploying relay….
Workaround
Hard-link prebuilds/darwin-arm64/pty.node and watcher.node from the last working relay dir into the new one, then Connect again.
Do not use Reset remote relay after that — it re-uploads new-path natives and the hang comes back.
relayGracePeriodSeconds was 0 (--grace-time 0), so a dropped client tears the relay down and the next Connect re-enters deploy/probe.
Ask
Timeout (and log) the remote native probe so a hang becomes a failed Connect.
Happy to add remote sw_vers, sample/spindump of the stuck node, client [ssh-relay] logs, or codesign of pty.node.
Activity
[-][Bug]: Direct SSH Connect hangs forever on Deploying relay — new-path node-pty/watcher dlopen never returns (macOS remote, Test succeeds)[/-][+][Bug]: Direct SSH Connect hangs on Deploying relay (native probe never finishes)[/+]nwparker commentedon Sep 2, 2026
Closing as addressed by #17891 and #17907, which fixed the native-probe/connect failure path.