Before submitting#
Area#
apps/server
Steps to reproduce#
- On Windows, keep a thread open in T3 Code desktop with its browser panel visible.
- Have the agent call
preview_open({ url: "https://v2.airscale.io/", open: true, reuseExistingTab: false }) for a site the user is signed in to in the desktop browser.
preview_evaluate({ expression: "navigator.userAgent" }).
- Repeat steps 2 and 3 later in the same session (in my case after a few
preview_click calls timed out).
Expected behavior#
While the desktop has the thread open, agent tabs open on the desktop runtime, in the cookie store where the user's logins live. If T3 has to fall back to the server browser, preview_open or preview_status says so.
Actual behavior#
Early in the session, agent tabs reported the desktop user agent (... T3CodeNightly/0.0.46-nightly.20261015.3145 Chrome/152.0.7977.130 Electron/44.4.5 ...) and sites were signed in (Gmail, ChatGPT, LinkedIn).
Later in the same session and thread, with the panel still open, new agent tabs reported Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/154.0.0.0 Safari/537.36 (the headless server browser), one with a 5120x3200 viewport and a blank screenshot. In those tabs the sites showed their sign-in pages, while the user's panel showed the same sites signed in.
Passing runtime: "desktop" to preview_open made no difference. Neither preview_open nor preview_status reports which runtime a tab is on, so an agent cannot tell why a site looks signed out. Google also refuses sign-in in the server store, so the agent cannot recover there.
Impact#
Major degradation or frequent failure
Version or commit#
0.0.46-nightly.20261015.3145
Environment#
Windows 11 Home, T3 Code Nightly desktop, server browser chrome-headless-shell 154.0.8037.92, agents on Codex (GPT-6.x) and Claude through the t3-code MCP preview tools.
Workaround#
Agents check navigator.userAgent before treating a sign-in page as real, then fall back to another browser. Possibly related to the host eviction in #16921.
Note
Grok responding on behalf of Julius.
Closing this as a duplicate of #16921. The switch you saw comes from the same timeout eviction tracked there.
On current main, when a host doesn't answer a request in time,
PreviewAutomationBrokerdisconnects it (disconnect(..., true)ininvoke). Any host can be evicted this way, the desktop included. The session's lease on that desktop is then dropped, and the next open goes to the next available host. In your session that was the environment's server browser, which is registered aspreferred. The broker comments describe this as deliberate: "A dead lease is pruned above and may fail over." Your timed-outpreview_clickcalls fit this pattern.Two notes from the code:
preview_openinput (PreviewAutomationOpenInput) has noruntimefield, soruntime: "desktop"isn't an option there.tabIdthat can't be resolved. It wouldn't change areuseExistingTab: falseopen.I'll carry the missing visibility over to #16921: neither
preview_opennorpreview_statusreports a tab's runtime. If you can reproduce the switch with no timeouts first, comment and we'll reopen.