feat: add Cloudflare Sandbox run sessions#753
Merged
Conversation
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.
Closes #182.
Summary
run-sessionfor Cloudflare Sandbox and attach a reusable session handle after lease identity existscrabbox stop --provider cloudflare-sandbox --id ...cleanup command with no separate provider run ID--keep --lease-output, regenerate the provider matrix, and explicitly record Anthropic SRT, MXC, and Windows Sandbox as one-shot providers without stable cleanup handlesCloudflare Sandbox already had stable local claims, reuse by ID/slug, ownership verification, and safe stop. This change exposes that existing lifecycle through the provider-neutral run-session contract without changing bridge mutation behavior.
Verification
go test -race ./internal/providers/cloudflaresandbox ./internal/providers/allgo test -race ./internal/cligo vet ./...go build -trimpath -o bin/crabbox ./cmd/crabboxnode scripts/generate-provider-matrix.mjs --check(68 providers)scripts/check-docs.sh(51 command docs, 201 Markdown files, docs site build)Behavior validation confirmed
cloudflare-sandboxadvertisesrun-session, the three one-shot negative controls do not, and missing bridge configuration fails without creating a false lease-output file. A successful live bridge run remains environment-blocked because no approved Cloudflare Sandbox bridge runtime or credentials are configured; fake-bridge race tests cover create, reuse, keep, failure retention, stop cleanup, one-shot cleanup, and cleanup failure.No configuration, credential, secret, or provider API changes.