Skip to content

Sandboxes become inaccessible after running for a while on macOS — sbx ls hangs, dashboard shows none, reboot fixes it #163

Description

@X-43A

Environment

  • macOS 26.3.1 (Tahoe) ARM64
  • sbx v0.28.3
  • Docker Desktop also installed
    What happens

After the Mac has been running for a while, all sandboxes become completely inaccessible. sbx ls hangs forever, the dashboard shows no sandboxes, and sbx run <name> also hangs. Full reboot always fixes it.

Diagnosis (with help from Claude)

sbx diagnose passes all checks. The daemon is alive and responsive. But the log shows it can't reach any sandbox VM:

"failed to create SDK client for runtime","runtime":"claude-new","error":"create SDK client: health check: context canceled"
"uri":"/runtime","status":200,"duration_ms":15007

Each sandbox times out after ~15s, and with 6 sandboxes sbx ls just blocks forever. sample on the hung process shows all threads stuck on __psynch_cvwait. The VMs appear frozen at the hypervisor level — the daemon knows they exist but can't reach their internal Docker sockets.

Expected behaviour

sbx ls should timeout and show sandboxes as stopped rather than hanging indefinitely.


sbx diagnose report

OS: darwin
Arch: arm64
DS Version: v0.28.3

Check Status Message
CLI binary found
Daemon healthy
Version match v0.28.3
Storage directories all 1 paths present
Directory permissions all writable
Socket responsive
Authentication authenticated
Full JSON output ```json { "version": "1.0", "checks": [ { "name": "CLI binary", "status": "pass", "message": "found", "detail": "/opt/homebrew/bin/sbx", "hint": "" }, { "name": "Daemon", "status": "pass", "message": "healthy", "detail": "version v0.28.3 8d114184e520cf5744502f187faf90342af599e5", "hint": "" }, { "name": "Version match", "status": "pass", "message": "v0.28.3", "detail": "", "hint": "" }, { "name": "Storage directories", "status": "pass", "message": "all 1 paths present", "detail": "", "hint": "" }, { "name": "Directory permissions", "status": "pass", "message": "all writable", "detail": "", "hint": "" }, { "name": "Socket", "status": "pass", "message": "responsive", "detail": "", "hint": "" }, { "name": "Authentication", "status": "pass", "message": "authenticated", "detail": "", "hint": "" } ], "summary": { "pass": 7, "warn": 0, "fail": 0, "skip": 0 } } ```

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions