Repository navigation
fix(ui): better sandbox_unavailable error + SANDBOX.md operator guide - #87
Merged
Merged
Conversation
…TORY-065 update
When Piston is unreachable (the Docker Desktop on Windows cgroup v2 case),
the Run/Submit panel previously just showed:
Run failed
sandbox_unavailable — Piston execute failed
…with no path forward for a user trying to actually use the app.
Two improvements:
1. RunResultPanel (in both apps/web/src/app/session/SessionClient.tsx and
apps/web/src/app/playground/PlaygroundClient.tsx) now appends a coach-voice
explanation + link to docs/operations/SANDBOX.md when
result.error === 'sandbox_unavailable'. Pure additive: the original error
+ message still render.
2. New docs/operations/SANDBOX.md walks through four fix paths:
- (A) WSL-native docker engine inside a real Ubuntu distro — recommended;
- (B) remote Piston on a Linux VM via PISTON_URL;
- (C) public Piston API — RULED OUT (whitelist-only since 2026-02-15);
- (D) skip Run/Submit, the rest of the app works.
STORY-065 activity log updated with the new findings (public Piston blocked
as a default fallback).
…l+C and runs --down Two user-reported bugs from running .\scripts\dev.ps1 in PowerShell: 1. **Ctrl+C didn't tear anything down.** PowerShell's Ctrl+C handling killed the bash subprocess before its INT trap could run, leaving containers + dev servers orphaned. Fix: register a CancelKeyPress handler in dev.ps1 that cancels the default termination and a finally block that explicitly runs 'dev.sh --down' to clean up. 2. **Browser didn't open.** dev.sh used a single 'cmd.exe /c start' that silently fails when invoked from inside bash-via-PowerShell. Fix: try explorer.exe → rundll32 → powershell.exe Start-Process → cmd.exe /c start in order, and if all four fail, print the URL with a coach-voice note so the user can click/copy it. These compose with each other — a user running dev.ps1 now gets the browser opened reliably AND Ctrl+C cleans up everything.
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.
Summary
A user just hit STORY-065 (Piston broken on Docker Desktop Windows) from the live UI — pressed Run, got:
```
Run failed
sandbox_unavailable — Piston execute failed
```
…with no path forward. Two fixes:
In-app:
RunResultPanel(both/sessionand/playground) now appends a coach-voice line + link todocs/operations/SANDBOX.mdwhenerror === 'sandbox_unavailable'. Original error string still rendered for power users.Docs: new
docs/operations/SANDBOX.mdwith the four real fix paths:PISTON_URLSTORY-065 activity log updated with the new findings (public Piston no longer a default fallback option).
Test plan
pnpm format:checkclean