Repository navigation
feat(cli): support VM sandbox creation and file transfers - #6
Merged
Merged
Conversation
pokgak
previously approved these changes
Sep 14, 2026
Co-authored-by: Aiman Ismail <m.aimanismail@gmail.com>
Rework `bxc sandbox start` for the new public API default where an omitted vmSandbox selects the VM runtime: - start() gains gvisor input; vm+gvisor and vm+cpu are rejected (VM profile is fixed), and vmSandbox:false is sent only for gvisor while an omitted runtime relies on the server default - --no-wait keeps the synchronous receipt; otherwise a pending create polls inspect (3s interval, 180s bound), exiting 1 on expired or timeout with a status hint - --cpu now implies --gvisor so the flag stays meaningful - docs, CHANGELOG, and skill reflect the default VM runtime, the wait behavior, and the fixed VM profile - smoke script covers defaulted and explicit --vm creates end to end Co-authored-by: Amp <amp@ampcode.com> Amp-Thread-ID: https://ampcode.com/threads/T-01a078f3-2e16-705d-b19c-14fb386c65ad Co-authored-by: Aiman Ismail <m.aimanismail@gmail.com>
pokgak
force-pushed
the
feat/vm-sandbox-files
branch
from
September 17, 2026 04:29
7352b31 to
7482cff
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Approved accounts can now request VM sandboxes with
bxc sandbox start WORKSPACE_ID --vm --idempotency-key KEY, upload binary fixtures, and download complete results. Creation returns the receipt (including pending state); status checks readiness. Requests never automatically retry or allocate replacements.--nameand reusable creation keys, pending/expired VM status types, 8 MiB uploads, and cursor-based downloads that validate byte ranges and never overwrite local files.Validation: 36 Bun tests; typecheck, lint, build and npm pack; packaged VM creation/binary transfer smoke tests on Node 20.20.2, 22.23.2, and 24.21.0; skill validation; shell/JSON documentation checks; unpublished-version/release validation.
Live VM execution has not been tested. Beta approval and a compatible server are still required. SSH work in #4 is independent and is not included here. Landing documentation PR requires CLI 0.4.0 to be released before publication.