Skip to content

Do not count a stopped VM against HOST_LIMITS - #92

Draft
czpython wants to merge 2 commits into
mainfrom
claude/project-thread-t1lfdn-89
Draft

czpython wants to merge 2 commits into
mainfrom
claude/project-thread-t1lfdn-89

Conversation

@czpython

@czpython czpython commented Nov 2, 2026

Copy link
Copy Markdown
Owner

Requested by Paulo · project thread

Closes #89.

  • VMProvider.stopped_vms() returns the names of the VMs the provider stopped; the default is none.
  • docker-sbx reads them from one sbx ls --json (status == "stopped"). SbxCLI.sandbox_count becomes sandboxes.
  • The capacity check leaves those hosts out. A failed listing returns 502 PROVISIONING_FAILED.
  • Not done: the running field on GET /hosts. It adds a provider call to each read and the capacity fix does not need it.

Draft until a live sbx ls --json confirms the status field and its stopped value.


Generated by Claude Code

@czpython czpython self-assigned this Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Do not count a suspended VM against HOST_LIMITS

2 participants