[Bug]: Browser panel shows a white page while loading in dark mode
Area
apps/desktop
Steps to reproduce
- Use T3 Code with a dark theme.
- Open a page in the browser panel, for example a local dev server.
- Watch the panel until the page paints.
Expected behavior
The panel stays dark until the page paints.
Actual behavior
The panel is white until the page paints. This is especially visible with slow dev servers.
The browser appearance setting doesn't look like a fix: in the desktop bundle it only emulates prefers-color-scheme, and I found no background color set for the preview webview. Setting one in the will-attach-webview handler might work, but I haven't tested that.
Impact
Cosmetic issue
Version or commit
0.1.7 (322f6544dfad)
Environment
Windows 11, desktop app
Workaround
None for pages you don't control.
Created with AI · Commissioned by Karsten.
Same on macOS (desktop app, dark theme, M5 Max, built-in XDR display). It shows up as a white flash, not only on slow pages: an agent in another thread drives the browser panel with preview automation (navigate/reload of a local dev server), so the panel had 32 page loads in about 6 hours, sometimes 1–10 s apart. Each load paints white first. renderer-history.ndjson shows the dom-ready events on the preview surface; the desktop trace shows PreviewAutomationBroker.invoke right before each one.
Suggested fix: set the webview background to the active theme background in the will-attach-webview handler (or webContents.setBackgroundColor on attach), so the panel stays dark until first paint.