Skip to content

Fix sandbox#8

Merged
RogutKuba merged 17 commits into
mainfrom
kuba/new-sandbox
Feb 22, 2026
Merged

Fix sandbox#8
RogutKuba merged 17 commits into
mainfrom
kuba/new-sandbox

Conversation

@RogutKuba

Copy link
Copy Markdown
Member

No description provided.

RogutKuba and others added 12 commits February 19, 2026 21:12
…e/sandbox v0.7.4

- Swap @cloudflare/sandbox from workspace fork (v0.0.7) to official npm (v0.7.4)
- Update @cloudflare/containers to v0.0.30 and wrangler to v4.67.0
- Create SandboxDO extending official Sandbox class with lifecycle hooks
- Create languageCommands.ts map replacing 12 individual runner files
- Rewrite CodeRun.service.ts and Sandbox.service.ts to use getSandbox() API
- Slim Dockerfile based on cloudflare/sandbox:0.7.4 with language runtimes
- Use tsx instead of ts-node for TypeScript execution
- Add SANDBOX_OVERHAUL.md phased checklist for remaining work

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add POST /stop endpoint using sandbox.killAllProcesses()
- Add POST /run/stream SSE endpoint using sandbox.execStream()
- Add runCodeStream() method to CodeRunService with SSE error wrapping
- Add Stop button (destructive variant) that replaces Run while executing
- Wire AbortController into /run fetch so Stop immediately cancels the request
- Suppress AbortError from global mutation error handler and execution history
- Remove debug console.log from /run route

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add GET /terminal WebSocket route using proxyTerminal() from SDK
- Create Terminal component with xterm.js, FitAddon, and SandboxAddon
- Light theme terminal with connection state indicator overlay
- Register terminal panel in Dockview with RiTerminalBoxLine icon
- Add terminal panel below code-output in both host and guest views
- Install @xterm/xterm, @xterm/addon-fit, @cloudflare/sandbox in web app

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add FileSyncService that continuously syncs Yjs document file contents
to the sandbox filesystem, so the terminal sees exactly what the editor
has. Includes initial full sync on load, debounced content writes (500ms),
and structural change handling (add/delete/rename/move).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add cloudflared binary to sandbox Dockerfile, implement tunnel-based
preview URLs via PreviewService for local development, and configure
Vite templates with allowedHosts to accept tunnel hostnames.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Restore separate output panel showing only latest execution result
(empty state, loading spinner, plain stdout with stderr in red).
Run/Stop button toggles based on loading state and hides for web
frameworks. Fix compiled language paths (./ prefix on absolute paths),
replace killAllProcesses with selective process killing to avoid
destroying the sandbox container, and remove unused runCommands.ts.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Store the preview URL in Yjs doc instead of local React state so all
room participants see the running preview iframe immediately. On start,
write URL to Yjs; on stop, clear it. New participants read the existing
URL on mount and subscribe to changes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add text-left to the button wrapper in InstructionEditor to override
browser default centered text. Add a code block toggle button to the
TipTap toolbar alongside the existing inline code button.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Auto-fix import ordering (biome), formatter fixes, remove the unused
code field from /run and /run/stream validators since code is now read
from the sandbox filesystem. Fix language type in useRunRoomCode.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Biome auto-fixed import ordering and formatting across API and web.
Includes previously uncommitted sandbox overhaul changes: CodeRun
service cleanup, SandboxDO updates, language commands reformatting,
multiFileTemplates fixes, and removal of SANDBOX_OVERHAUL.md tracker.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel

vercel Bot commented Feb 22, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
coderscreen-marketing Ready Ready Preview, Comment Feb 22, 2026 6:02pm

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Feb 22, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
coderscreen-web c2a0329 Feb 22 2026, 06:02 PM

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
RogutKuba and others added 3 commits February 22, 2026 12:57
Vercel blocks deploys with next-mdx-remote@5.0.0 due to a security
vulnerability. Updated to v6.0.0 which resolves the CVE.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The toast component imports sonner but it wasn't listed in
package.json, causing Cloudflare web builds to fail.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@RogutKuba RogutKuba merged commit e06d7d3 into main Feb 22, 2026
5 checks passed
@RogutKuba RogutKuba deleted the kuba/new-sandbox branch February 22, 2026 18:11
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.

1 participant