Skip to content

Remove HTTP/WebSocket transports in favor of capnweb#539

Draft
aron-cf wants to merge 1 commit intocapnweb-rpcfrom
captnweb-cleanup
Draft

Remove HTTP/WebSocket transports in favor of capnweb#539
aron-cf wants to merge 1 commit intocapnweb-rpcfrom
captnweb-cleanup

Conversation

@aron-cf
Copy link
Copy Markdown
Contributor

@aron-cf aron-cf commented Mar 30, 2026

Important

DO NOT MERGE!

Make capnweb the sole transport between the Sandbox DO and container.
Remove the old SandboxClient, all HTTP domain clients, the transport
abstraction layer, HTTP handlers, router, route setup, middleware,
and the WebSocket adapter.

The RPCSandboxClient (backed by ContainerConnection) is now the only
client implementation. The container serves capnweb RPC at /capnweb
and PTY WebSocket at /ws/pty, with a minimal /health endpoint.

SANDBOX_TRANSPORT env var is no longer read — capnweb is always used.

Make capnweb the sole transport between the Sandbox DO and container.
Remove the old SandboxClient, all HTTP domain clients, the transport
abstraction layer, HTTP handlers, router, route setup, middleware,
and the WebSocket adapter.

The RPCSandboxClient (backed by ContainerConnection) is now the only
client implementation. The container serves capnweb RPC at /capnweb
and PTY WebSocket at /ws/pty, with a minimal /health endpoint.

SANDBOX_TRANSPORT env var is no longer read — capnweb is always used.
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 30, 2026

⚠️ No Changeset found

Latest commit: be3336f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Mar 30, 2026

Open in StackBlitz

npm i https://pkg.pr.new/cloudflare/sandbox-sdk/@cloudflare/sandbox@539

commit: be3336f

@github-actions
Copy link
Copy Markdown
Contributor

🐳 Docker Images Published

Variant Image
Default cloudflare/sandbox:0.0.0-pr-539-be3336f
Python cloudflare/sandbox:0.0.0-pr-539-be3336f-python
OpenCode cloudflare/sandbox:0.0.0-pr-539-be3336f-opencode
Musl cloudflare/sandbox:0.0.0-pr-539-be3336f-musl
Desktop cloudflare/sandbox:0.0.0-pr-539-be3336f-desktop

Usage:

FROM cloudflare/sandbox:0.0.0-pr-539-be3336f

Version: 0.0.0-pr-539-be3336f


📦 Standalone Binary

For arbitrary Dockerfiles:

COPY --from=cloudflare/sandbox:0.0.0-pr-539-be3336f /container-server/sandbox /sandbox
ENTRYPOINT ["/sandbox"]

Download via GitHub CLI:

gh run download 23743655363 -n sandbox-binary

Extract from Docker:

docker run --rm cloudflare/sandbox:0.0.0-pr-539-be3336f cat /container-server/sandbox > sandbox && chmod +x sandbox

@ghostwriternr
Copy link
Copy Markdown
Member

(I know this is wip, but I'm VERY EXCITED for this)

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