You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Agent preview snapshots time out while the desktop window is minimized or in the tray #38523
The preview can't capture while the T3 Code window is hidden or minimized.
This happens both when the window is minimized to the taskbar and when it's closed to the tray. The agent's preview snapshots and recordings fail. The user also reports that the Browser panel's Screenshot button fails, but the desktop trace has no desktop.ipc.preview.captureScreenshot calls from Nov 16 onward, so that part isn't confirmed on this build.
Diagnosis
Agent snapshots send CDP Page.captureScreenshot through DesktopBrowserHost to the guest webview. When the main window is minimized or hidden, Windows stops compositing it, so the guest never paints a frame and the capture never resolves. syncPainting and paintUntilAnswered paint the guest behind the app, but that only helps while the app window itself is being drawn. captureViewport in apps/server/src/preview/ServerBrowserPage.ts then hits SCREENSHOT_TIMEOUT_MS and fails with the "show or restore the T3 Code window" message (added in #25862).
#36671 fixed the human Screenshot button for a hidden window: it starts frame capture, runs a paint probe, and discards a warmup capturePage (captureStillImage in apps/desktop/src/preview/Manager.ts). Its description says agent/CDP screenshots and recording were left unchanged. This asks for the agent path to get the same treatment, so an agent can keep verifying UI while the user has T3 Code minimized. No commit on main after this build touches either path.
Steps to reproduce
Windows 11, T3 Code Desktop nightly 0.1.11-nightly.20261117.4838.
Have an agent open a desktop preview tab (preview_open) on any page.
Minimize T3 Code, or close it to the tray.
Have the agent call preview_snapshot with a screenshot.
After about 6 s it fails with "The browser is not producing screenshot frames…". Restoring the window makes it work again.
Version
0.1.11-nightly.20261117.4838 (desktop app and its local server)
Environment
Windows 11 Pro 10.0.26300 x64, Node v24.22.1, desktop app with a local server
Evidence
2026-11-18T09:07:29Z PreviewToolkit.invoke Failure (6114 ms)
2026-11-18T09:07:46Z PreviewToolkit.invoke Failure (6031 ms)
PreviewAutomationExecutionError: Preview automation snapshot failed: The browser is not producing screenshot frames. For a desktop tab, show or restore the T3 Code window and try again.
at classifyResponseError (.../server.asar/apps/server/dist/server-*.mjs)
at PreviewAutomationBroker.awaitResponse
at PreviewAutomationBroker.invoke
at PreviewToolkit.invoke
Related issues
#36671 (the same fix for the human Screenshot button only), #25862 (added the timeout and message), #23936 (closed, a different cause: child threads and open:false tabs)
Fix applied or workaround
None applied. Keeping the T3 Code window restored while the agent uses the preview avoids it.
Activity
juliusmarminge commentedon Nov 18, 2026
This is the same problem as #23139, so I'm closing it in favour of that one. If it is different, say how and it will be reopened.