Repository navigation
feat(cli): reconnect to sandbox commands by operation ID - #40
Conversation
farhan-helmy
left a comment
There was a problem hiding this comment.
Thanks. The limits match the API: a 900 s execute timeout, 1 MiB of retained output, a 0–30 s wait and 256 KiB pages. The key check matches the server's rule of 1–255 visible ASCII characters. The cancel exit status follows the documented race between cancellation and completion. CI passes.
Before merge: please rebase for the CHANGELOG.md and package.json conflicts. 0.16.0 assumes #38 lands first.
Bring in 0.14.3. The 0.16.0 changelog entry sits above it and the package keeps 0.16.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
farhan-helmy
left a comment
There was a problem hiding this comment.
I merged main into this branch to bring in 0.14.3 (no force push). The only conflicts were in CHANGELOG.md and package.json. Your 0.16.0 entry now sits above 0.14.3, and the package keeps 0.16.0. The rest of the diff is unchanged, and CI passes, including the Windows job from #37. Re-approving, since the push dismissed my earlier review.
No action needed from you. I'll update the changelog again as the earlier PRs land.
Bring in 0.14.4 and 0.15.0. The 0.16.0 changelog entry sits above them and the package keeps 0.16.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A dropped CLI connection can leave users unsure whether a sandbox command ran and unable to retrieve its output.
bxc sandbox operation startreturns a durable ID and supports replay with a saved idempotency key. Use the sandbox and operation IDs to inspect the command, wait for its exit status, page through stdout and stderr by byte offset, or request cancellation.Validated with 117 Bun tests, typecheck, lint, the build, and both Go helper test suites. Installed the npm tarball and ran VM and operation smoke tests on Node.js 20, 22, and 24 with local API fixtures.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.