Skip to content

feat(devbox): frame the browser as a desktop with a dock - #4776

Open
wailingwombat wants to merge 20 commits into
masterfrom
anna/prod-5497-devbox-browser-framing
Open

wailingwombat wants to merge 20 commits into
masterfrom
anna/prod-5497-devbox-browser-framing

Conversation

@wailingwombat

@wailingwombat wailingwombat commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Resolves PROD-5497: the devbox browser was portalled straight into the UI with no framing.

Console-only: this works on today's devbox images. The optional image follow-up (dark Chromium, root arrow cursor, a daemon fix for the reopen request hanging) is in #4784 and doesn't block this.

Console

  • The browser sits as an inset window on a wallpaper that follows the console theme (a blue beam in dark mode, a pale sky in light), capped in width so the wallpaper frames it.
  • Console controls (select element, move, fullscreen) live in a console bar above the desktop, not in the box's area.
  • A dock with the Chromium logo sits under the window, with no border. When the streamed screen goes pure black (Chromium's last window closed; sampled at 16x10 once a second, twice in a row), the window hides and the desktop shows.
  • The icon reopens it by opening a stream with about:blank, which the daemon turns into a new tab; servers that only allow http(s) urls get https://www.google.com/. The window shows again on the click with an "Opening the browser" label (so a fullscreen black page taken for a closed window comes straight back), clicks while a reopen is pending do nothing, and the desktop says so if no window is back within 15 seconds.
  • Today's daemon opens the tab but never answers the request, so the console refits the new window onto the screen on a schedule (1s, 2.5s, 5s) instead of waiting for the reply, and doesn't treat the eventual dropped request as a failure.
  • Starting and reopening the browser use the thread's loading look: the agent loading icon beside a shimmering label.
  • While the screen is blank, the streamed cursor is dropped for the browser's own arrow, so X's cross doesn't show over the wallpaper.

Server

  • Workspace.open_stream accepts about:blank for the vnc stream, so the dock reopens to an empty page.

Testing

  • DevboxBrowserView and voxlClient tests pass (including a box that never answers the reopen, and a refit that ends at the view's current size), yarn tsc --build is clean, Biome is clean.
  • workspace_test.exs updated for about:blank; not run locally.
  • On any current devbox: close the last tab, click the dock icon once; one window comes back, fitted, without a refresh.

Inset the box's browser on a themed backdrop with console controls outside it,
and a dock icon that reopens the browser when its last window is closed. The
daemon reports open tabs, opens a window on request, has Chromium follow the
console's light or dark theme via xsettingsd, and gives the bare screen an arrow
cursor (xsetroot).

Co-authored-by: Cursor <cursoragent@cursor.com>
@linear

linear Bot commented Dec 1, 2026

Copy link
Copy Markdown

PROD-5497

@wailingwombat wailingwombat added the enhancement New feature or request label Dec 1, 2026
wailingwombat and others added 11 commits December 1, 2026 18:43
Co-authored-by: Cursor <cursoragent@cursor.com>
The bare X display has no root cursor, so closing Chromium's last window shows X's cross, and the console keeps painting that cursor until the pointer moves. xsetroot sets an arrow when the display starts, with the cursor font installed, and the console drops the streamed cursor while the screen is blank.

The console now handles that closed screen itself: the dock reopens a blank page through the existing stream URL, falling back to a web page on consoles that only allow http(s).

Co-authored-by: Cursor <cursoragent@cursor.com>
Layer light washes, an edge vignette, and a fine grain over the theme greys so the desktop reads as a wallpaper in both modes. Clear the closed-screen state from the connection callback, which the lint rejects when done synchronously in the effect.

Co-authored-by: Cursor <cursoragent@cursor.com>
Replace the grey washes with one beam of design-system blue rising from the lower right into black, under a heavier film grain, so the backdrop reads as a wallpaper.

Co-authored-by: Cursor <cursoragent@cursor.com>
The blue beam was washing out to grey while the console was in light mode, and the window covered it. The desktop now stays the dark beam in either theme, with the window inset so the wallpaper shows around it.

Co-authored-by: Cursor <cursoragent@cursor.com>
The dark beam was showing inside the light console. Light mode now uses a pale sky field with a blue wash in the lower right, and dark mode keeps the black beam.

Co-authored-by: Cursor <cursoragent@cursor.com>
Light mode was one hard blue corner. It is now a light sky field with a few soft blue and white clouds and a fine grain, closer to the reference.

Co-authored-by: Cursor <cursoragent@cursor.com>
The box was opening the tab, but the view is hidden while the desktop shows, so it measured as zero and the new window was never fitted onto the screen. Fit it from the last real size and ask for a fresh frame.

Co-authored-by: Cursor <cursoragent@cursor.com>
…ion open

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…swer

Co-authored-by: Cursor <cursoragent@cursor.com>
@wailingwombat

Copy link
Copy Markdown
Collaborator Author

@greptile

@wailingwombat

wailingwombat commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator Author
Screenshot 2026-12-02 at 10 38 35 AM Screenshot 2026-12-02 at 10 39 00 AM Screenshot 2026-12-02 at 11 04 04 AM

@greptile-apps

greptile-apps Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5RetriggerView in Greptile

[Medium impact] The PR appears safe to merge; no new blocking issue was found.

Summary

Frames the devbox browser as a desktop with a themed wallpaper and Chromium dock.

  • The devbox browser now sits inside a desktop-style frame.
  • A dock icon reopens the browser after its last window closes.

No new actionable issues found. Tests were not run. Visual checks were blocked by missing local dependencies and authenticated devbox access.

Reviews (3) · Last reviewed commit: "style(devbox): add the agent loading ico..." · Reviewed by Greptile

wailingwombat and others added 3 commits December 2, 2026 10:46
…ent size

Co-authored-by: Cursor <cursoragent@cursor.com>
… still black

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@wailingwombat

Copy link
Copy Markdown
Collaborator Author

@greptile

wailingwombat and others added 3 commits December 2, 2026 10:57
…k theme

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…bels

Co-authored-by: Cursor <cursoragent@cursor.com>
@wailingwombat
wailingwombat marked this pull request as ready for review December 2, 2026 15:02
@wailingwombat
wailingwombat requested a review from a team as a code owner December 2, 2026 15:02
…n't show

Co-authored-by: Cursor <cursoragent@cursor.com>
…allpaper

Co-authored-by: Cursor <cursoragent@cursor.com>
@michaeljguarino

Copy link
Copy Markdown
Member

Shouldn't the window controls live w/in the frame instead of outside?

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants