## Summary Remove devcontainer support from the product surface and codebase: the parser crate, workflow bridge, lifecycle execution path, typed events, CLI progress rendering, generated client field, and public/internal documentation references are all gone. ## What Changed - Deleted the dedicated parser crate and removed its Cargo dependencies and lockfile entries. - Removed workflow initialization paths that resolved repository devcontainer metadata, applied Daytona snapshots from it, merged environment variables from it, or ran its lifecycle commands. - Removed the typed event variants and CLI progress handlers for the retired lifecycle events while leaving shared unknown-event handling intact. - Cleaned the generated TypeScript client and tracked docs so repository search has no remaining devcontainer references outside git history. ## Verification - `cargo +nightly-2026-04-14 fmt --all` - `cargo +nightly-2026-04-14 fmt --check --all` - `cargo build --workspace` - `cargo nextest run -p fabro-types` - `cargo nextest run -p fabro-workflow` - `cargo nextest run -p fabro-cli run_progress` - `cd lib/packages/fabro-api-client && bun run generate && bun run typecheck` - `cargo metadata --no-deps --format-version 1 | rg -i "fabro-devcontainer|devcontainer"` - `rg -n -i "devcontainer|dev container|dev-container|dev_container|fabro-devcontainer|\\.devcontainer" . --glob '!target/**' --glob '!.worktrees/**'` --- [](https://github.com/EveryInc/compound-engineering-plugin) 🤖 Generated with GPT-5 via [Codex](https://openai.com/codex)
6.2 KiB
Sandbox Services Frontend Implementation Plan
For agentic workers: REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (
- [ ]) syntax for tracking.
Goal: Add a Services tab to the sandbox page that lists backend-discovered services and opens Daytona preview URLs for supported ports.
Architecture: The sandbox page gains a new services mode between terminal and filesystem. A new SWR query calls the generated services endpoint, and a new panel renders the service list. Preview generation reuses the existing preview mutation semantics with signed URLs so browser opens do not require custom headers.
Tech Stack: React 19, React Router, SWR, generated TypeScript Axios client, Tailwind CSS, Heroicons.
Scope
- Add a Services tab to
/runs/:id/sandbox?mode=services. - Place it between Terminal and Filesystem.
- List all services returned by the backend.
- Show a Preview action only for rows with
preview_supported: true. - Do not read repository setup metadata.
- Do not perform browser-side HTTP checks.
- Do not implement polling beyond normal SWR refresh/manual refresh behavior.
Dependencies
- Requires the backend phase in
docs/superpowers/plans/2026-05-10-sandbox-services-backend.md. - Requires regenerated
@qltysh/fabro-api-clienttypes andHumanInTheLoopApi.listSandboxServices.
Files
- Modify:
apps/fabro-web/app/lib/query-keys.ts - Modify:
apps/fabro-web/app/lib/queries.ts - Modify:
apps/fabro-web/app/lib/mutations.ts - Modify:
apps/fabro-web/app/routes/run-sandbox.tsx - Create:
apps/fabro-web/app/routes/run-sandbox/services-panel.tsx - Create:
apps/fabro-web/app/routes/run-sandbox/services-panel.test.tsx - Modify:
apps/fabro-web/app/routes/run-sandbox.test.tsx
Tasks
Task 1: Add Client Query and Preview Support
- Add
queryKeys.runs.sandboxServices(id)returning["runs", "sandbox-services", id]. - Add
useSandboxServices(id)inqueries.ts:- SWR key is null when
idis absent. - Fetcher calls
humanInTheLoopApi.listSandboxServices(id!). - Return type uses generated
SandboxServiceListResponse. - Use
{ keepPreviousData: true }.
- SWR key is null when
- Extend
PreviewRunArginmutations.tsto include optionalsigned?: boolean. - Ensure service preview calls pass
signed: true. - Keep the existing run detail Preview action working; its current
{ port: 3000, expires_in_secs: 3600 }call remains valid.
Task 2: Add Services Mode to the Sandbox Route
- Update
SandboxModeto"terminal" | "services" | "filesystem" | "vnc". - Update
normalizeSandboxModeso"services"is accepted and unknown values still default to"terminal". - Update
setModebehavior:terminalremoves themodequery param.services,filesystem, andvncsetmodeto their mode name.
- Render tab order exactly as:
TerminalServicesFilesystemVNCwhen VNC is available.
- Render
<ServicesPanel runId={params.id} leading={modeToggle} />when mode isservices. - Keep the existing VNC provider fallback behavior unchanged.
Task 3: Build the Services Panel
- Create
services-panel.tsx. - Header:
- left side renders
leading. - right side has a refresh icon button using
ArrowPathIcon. - refresh calls
servicesQuery.mutate().
- left side renders
- Body states:
- loading: use existing
LoadingState. - error: use existing
ErrorStatewith the API error message when available. - empty: use
EmptyStatewith titleNo services. - data: render a compact table inside a bordered panel.
- loading: use existing
- Table columns:
PortBindingsProcessAction
- Display rules:
- Port is mono text.
- Bindings joins
addresseswith,, or shows-when empty. - Process joins
processeswith,, or shows-when empty. - Previewable rows show a button labelled
Preview. - Non-previewable rows show muted text
Unavailable.
- Preview behavior:
- Trigger
usePreviewRun(runId)with{ port, expires_in_secs: 3600, signed: true }. - Open the returned URL in a new tab.
- Disable the clicked preview button while the preview mutation is pending.
- If preview fails, show an inline error state in the panel using
ErrorStateor a compact error banner.
- Trigger
Task 4: Update Route Tests
- Update the query mock in
run-sandbox.test.tsxto includeuseSandboxServices. - Update default tab-count assertions:
- Docker provider now has
Terminal,Services,Filesystem. - Daytona provider now has
Terminal,Services,Filesystem,VNC.
- Docker provider now has
- Add tests:
?mode=servicesselects Services.normalizeSandboxMode("services")returns"services".- Docker
?mode=vncstill falls back to Terminal.
Task 5: Add Services Panel Tests
- Mock
useSandboxServicesandusePreviewRun. - Test loading state.
- Test empty state.
- Test API error state.
- Test a non-previewable service on port
2500is visible and has no Preview button. - Test a previewable service on port
3000renders Preview and triggers:port: 3000expires_in_secs: 3600signed: true
- Test clicking Preview opens the returned URL in a new tab.
Task 6: Verify
- Run
cd apps/fabro-web && bun test. - Run
cd apps/fabro-web && bun run typecheck. - Run
cd apps/fabro-web && bun run build. - If implementation changes layout materially, start the web dev flow and inspect
/runs/:id/sandbox?mode=servicesin a browser.
Acceptance Criteria
- The sandbox page includes a Services tab between Terminal and Filesystem.
- Services tab lists every service returned by the backend, including non-previewable ports.
- Only rows with
preview_supported: trueoffer Preview. - Preview opens a signed Daytona URL in a new browser tab.
- Existing Terminal, Filesystem, and VNC behavior remains intact.
Assumptions
- Backend returns already-filtered
preview_supportedbooleans; frontend does not recompute Daytona port ranges. - Service discovery is manually refreshed by the user for v1.
- Table density should match the existing operational sandbox UI, not a marketing-style layout.