Repository navigation
feat(preview): stream the real desktop app in ACME sandboxes - #5233
Merged
Merged
Conversation
ACME snapshots now boot the Linux desktop app from the reviewed commit on a virtual display, signed in as the demo owner, and expose it through a noVNC viewer behind the per-sandbox preview gateway. The desktop is optional: if it cannot start, the web preview still launches without a dead link. Snapshot recipe moves to v5 so older snapshots are rebuilt.
…iewer Restore the original build deadline, readiness wait, snapshot recipe version, workflow timeout, verification script and world labels. The display and noVNC viewer start in seconds and the desktop app boots in the background, so existing build timing is unchanged.
…chable in-VM The snapshot's Den answers on internal template origins that the in-VM desktop cannot reach, so automatic sign-in timed out and the app was closed. Launch it signed out; the real app, its workspace and UI stay available through the viewer.
…ndow The desktop's first boot fetched sidecars and helpers before opening a window and missed the harness's fixed page-target wait. The snapshot builder now fetches them once and the harness skips that step; one retry reuses warm compile caches.
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub. 4 Skipped Deployments
|
Drop the review README and label changes; the sandbox link still appears through the existing service list.
Following the existing Freestyle pattern: the live clone check now requires the access-checked noVNC viewer and a booted desktop app, and records its readiness time. The review panel names the service and the README documents it.
…rvives snapshot resume The eval harness's fixed deadlines expired when the snapshot paused and resumed a desktop that was still booting. Use .devcontainer/start-daytona-electron.sh under a relaunch loop, with a deadline-free readiness poll.
…e commit" This reverts commit c7039a9.
…ntly Wait (bounded, inside the existing build deadline) for the desktop window before the world reports ready, so Freestyle's memory snapshot captures a running desktop. Use the builder's prefetched sidecars instead of refetching on every boot.
Keep the launcher and running-snapshot design; once its window is up, sign it in as the demo owner through the launcher's debug port with the harness's handoff, warming Den web's /api/den route first, and fall back to signed out. Fetch desktop sidecars alongside the other builds. The prewarm check records whether the desktop signed in.
Den web's /api/den proxy redirects the handoff to the snapshot's template origin, which does not resolve in the VM, so the exchange timed out. Bootstrap the desktop with the local API; the exchange route accepts any origin by design.
Choosing OpenWork desktop launches the full-stack ACME world and opens its desktop viewer directly.
Contributor
|
Selected evidence: Passed · 1/1 tests · 2/2 assertions · 0 images Commit |
This was referenced Sep 23, 2026
benjaminshafii
pushed a commit
that referenced
this pull request
Sep 23, 2026
The review page re-validates every Services link a launch returns. The desktop viewer (desktop-<id>) added in #5233 was missing from the allowed prefixes, so a working ACME sandbox was rejected and shown as a failed launch. Signed-off-by: Benjamin Shafii <[email protected]>
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.
What is this about?
ACME Freestyle snapshots also run the real OpenWork desktop app from the reviewed commit. The snapshot captures it running, so every sandbox resumes it instantly behind the same private access as its other services. Reviewers can pick OpenWork desktop in the sandbox World menu to open it directly.
What problem does it solve?
Desktop-only changes could not be tried from a PR preview; sandboxes only ran the web app.
What was the situation before?
The World menu offered OpenWork web and ACME web, with no desktop, display or viewer.
Evidence
evals/specs/freestyle-review.e2e.test.ts— before: the review panel offered OpenWork web and ACME web; after: it also offers OpenWork desktop and explains it.scripts/verify-freestyle-preview.ts— before: no desktop service; after: CI confirms the desktop is already running in real clones behind the sandbox's access.Build deadline, readiness waits, snapshot version, triggers and secrets are unchanged. The desktop tries to sign in as the demo owner and otherwise opens signed out; sign-in currently falls back because Den's handoff redirects to the snapshot's internal origin.
Design: P3, P5, C1, C2, C3.