Skip to content

feat(cli): reconnect to sandbox commands by operation ID - #40

Merged
farhan-helmy merged 3 commits into
boxcompute:mainfrom
kyzer1023:feat/sandbox-exec-operations
Nov 30, 2026
Merged

farhan-helmy merged 3 commits into
boxcompute:mainfrom
kyzer1023:feat/sandbox-exec-operations

Conversation

@kyzer1023

@kyzer1023 kyzer1023 commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

A dropped CLI connection can leave users unsure whether a sandbox command ran and unable to retrieve its output.

bxc sandbox operation start returns 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-bot with what you need.

farhan-helmy
farhan-helmy previously approved these changes Nov 30, 2026

@farhan-helmy farhan-helmy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
farhan-helmy previously approved these changes Nov 30, 2026

@farhan-helmy farhan-helmy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>
@farhan-helmy
farhan-helmy merged commit 232cb96 into boxcompute:main Nov 30, 2026
6 checks passed
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.

2 participants