[macOS][Onboard] nemoclaw onboard deletes the created sandbox after dashboard port-forward "did not appear in list within 180000ms"
Description
On macOS with Docker provided by Colima, nemoclaw onboard builds and creates the sandbox successfully, but the dashboard port-forward step never sees the forward in openshell forward list. After a 180s timeout onboard treats this as fatal and deletes (rolls back) the otherwise-healthy sandbox, so onboarding can never complete. The SSH forward is in fact established and serving (host port is LISTENing and the dashboard returns HTTP 200 throughout the wait window) — it is simply never tracked. Deterministic: reproduced 3 times in a row.
Environment
Device: MacBook (Apple Silicon, arm64)
OS: macOS 26.5.1 (Darwin 25.5.0, arm64)
Architecture: arm64
Node.js: v22.22.3
npm: 10.9.8
Docker: 28.3.3 (backend: Colima 0.8.4)
OpenShell CLI: 0.0.44
NemoClaw: v0.0.68
Hermes Agent: v0.14.0
Steps to Reproduce
-
On macOS with the Docker daemon provided by Colima (
docker context = colima), run:NEMOCLAW_AGENT=hermes nemoclaw onboard -
Complete the wizard (compatible-endpoint inference, skip messaging, default resource profile).
-
After
Sandbox image build completed→Creating sandbox in gateway→Dashboard is live, watch the dashboard port-forward step:Still waiting for forward on port 18789 to register (30s elapsed)... ... (repeats through 151s) -
At 180s the forward never registers; onboard deletes the sandbox and exits.
Note: I can reproduce this stably on my local mac; but on another one: Apple M4 Max, arm64, macOS 26.5, Colima 0.10.1.
Expected Result
The dashboard port-forward is recognized as established and onboard completes, leaving the sandbox running. (The forward IS working — see Logs: the port is LISTENing and the dashboard returns HTTP 200 during the entire wait window.)
Actual Result
Still waiting for forward on port 18789 to register (151s elapsed)...
✓ Deleted sandbox hermes
Could not allocate a dashboard port for 'hermes'.
Failed to start dashboard forward on port 18789: forward did not appear in list within
180000ms; last forward list: <empty>
! Could not discover backgrounded SSH process; forward may be running but is not tracked
✓ Forwarding port 18789 to sandbox hermes in the...
The orphaned sandbox has been removed -- you can safely retry.
Logs
# Probed live DURING the 180s "Still waiting for forward..." window, while onboard
# claimed the forward had not registered:
$ lsof -nP -iTCP:18789
COMMAND PID USER FD TYPE DEVICE NODE NAME
ssh 19719 tedyy 9u IPv4 ... TCP 127.0.0.1:18789 (LISTEN) <-- forward IS up
$ openshell forward list
No active forwards. <-- but untracked
$ curl -s -o /dev/null -w '%{http_code}' http://127.0.0.1:18789/health
200 <-- dashboard reachable
Root cause: openshell forward start --background opens an SSH ControlMaster tunnel then does a one-shot lsof/ps probe to write its PID file. On Colima the remote bind finishes after the probe, so the forward runs untracked — openshell forward list stays empty even though the port is bound and serving. nemoclaw's onboard polls that list, never sees the entry, hits the 180s deadline, and rolls back the sandbox.
Update (verified 2026-07-01) — still present through v0.0.70
Reconfirmed on NemoClaw v0.0.69 and v0.0.70 (Hermes Agent v0.17.0): stock onboard hits the identical rollback. The onboard-time workaround is to patch dist/lib/onboard/forward-start.js so forward-confirmation also accepts the forward once the local port is actually LISTENing (via lsof), not only when it appears in openshell forward list. A secondary consequence: because the forward is untracked, it is not supervised — after a successful onboard it can silently drop later (host dashboard port stops LISTENing though the sandbox is fine); re-establish with nemoclaw <sandbox> recover.
Related bugs
- #6198707
[WSL2][Onboard] "No active forward found for port 18789"(Bug - Fixed) — same dashboard-forward-tracking subsystem; there it was a non-fatal warning, here it is fatal on macOS/Colima, suggesting the fix did not cover this path / the fragility recurs per-platform. - #6303335
[Ubuntu 24.04][Onboard] OpenAI-compatible API port 8642 not forwarded(Bug - Fixed) — related to the secondary "Could not start optional agent port forward 8642" warning also seen here.
Secondary, separate issue encountered first on the same host (handled separately):
create sandbox failed: ... network openshell-docker not found— the gateway bridge network was missing; worked around withdocker network create --label openshell.ai/managed-by=openshell openshell-docker.
/could not discover backgrounded ssh process|forward may be running but is not tracked/i
That is the old openshell (≈0.0.44) message. The openshell 0.0.72 bundled with v0.0.77+ emits a different text in the ControlMaster case — ssh exited before local forward listener opened on 127.0.0.1:18789 (verbatim in our v0.0.81 log) — so the regex never matches, the port probe never runs, and onboard times out and deletes a healthy sandbox (our forensics show the port LISTENing via the mux daemon and the dashboard serving HTTP 200 the whole time). The fix would work if its trigger also matched the new message — or, better, if openshell spawned its forward ssh with -o ControlMaster=no -o ControlPath=none, fixing the root cause and keeping forward list tracking accurate.