Skip to content

feat: add Cloudflare Sandbox run sessions#753

Merged
steipete merged 1 commit into
mainfrom
codex/cloudflare-sandbox-run-session
Jul 1, 2026
Merged

feat: add Cloudflare Sandbox run sessions#753
steipete merged 1 commit into
mainfrom
codex/cloudflare-sandbox-run-session

Conversation

@steipete

@steipete steipete commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Closes #182.

Summary

  • advertise run-session for Cloudflare Sandbox and attach a reusable session handle after lease identity exists
  • report fresh/reused and retained/cleaned state accurately across success, failure retention, and cleanup failure
  • emit a shell-quoted crabbox stop --provider cloudflare-sandbox --id ... cleanup command with no separate provider run ID
  • document --keep --lease-output, regenerate the provider matrix, and explicitly record Anthropic SRT, MXC, and Windows Sandbox as one-shot providers without stable cleanup handles

Cloudflare 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/all
  • go test -race ./internal/cli
  • go vet ./...
  • go build -trimpath -o bin/crabbox ./cmd/crabbox
  • node scripts/generate-provider-matrix.mjs --check (68 providers)
  • scripts/check-docs.sh (51 command docs, 201 Markdown files, docs site build)
  • autoreview clean: no accepted/actionable findings
  • source-blind CLI behavior validation: 3 pass, 0 fail, 1 blocked

Behavior validation confirmed cloudflare-sandbox advertises run-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.

@steipete
steipete merged commit b655fd9 into main Jul 1, 2026
11 checks passed
@steipete
steipete deleted the codex/cloudflare-sandbox-run-session branch July 1, 2026 09:50
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.

Track run-session support across Crabbox providers

1 participant