You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[All Platforms][Sandbox] --cleanup-gateway leaves OpenShell listening on port 8080 after final sandbox destroy #7904
Regression: the final-destroy listener symptom was fixed by #6597 for #4662, but is reproduced again with NemoClaw v0.0.97.
Description
Destroying the final sandbox with the explicit --cleanup-gateway flag returns success, but the shared OpenShell gateway remains bound to 127.0.0.1:8080 for more than 90 seconds.
Platform scope: Reproduced on macOS arm64, WSL2 arm64/x86_64, DGX Spark, DGX Station, Ubuntu 22.04, Ubuntu 24.04, and Ubuntu 26.04. Brev showed a different earlier-stage failure and is excluded.
Environment
Device: macOS, WSL2, DGX Spark, DGX Station, and Ubuntu test hosts
OS: macOS 26.5 and Linux/WSL2
Architecture: arm64, aarch64, x86_64
Node.js: v22.22.2 to v22.23.1
npm: 10.9.7 to 10.9.8
Docker: Docker Engine 28.3.3 to 29.6.2
OpenShell CLI: openshell 0.0.85
NemoClaw: nemoclaw v0.0.97
OpenClaw: Unknown (not required for host gateway cleanup)
Steps to Reproduce
Install NemoClaw v0.0.97 with OpenShell 0.0.85.
Onboard two sandboxes named cleanup-a and cleanup-b.
Run nemoclaw cleanup-a destroy --yes.
Verify cleanup-b remains listed and healthy.
Run nemoclaw cleanup-b destroy --yes --cleanup-gateway.
Wait up to 90 seconds and check whether 127.0.0.1:8080 is released.
Expected Result
The final sandbox is removed, the explicit --cleanup-gateway flag tears down the shared NemoClaw gateway, and 127.0.0.1:8080 becomes free.
Actual Result
The destroy command returns success and removes the sandbox, but the OpenShell gateway listener remains on 127.0.0.1:8080 beyond the 90-second wait.
Logs
Port 8080 did not become free within 90000ms. Last observed state: busy.
Activity
fix(cli): stop the packaged gateway service on final sandbox destroy (N…
fix(cli): clean up headless gateway fallback (#8033)