[Bug]: Typing a URL in the server-runtime browser address bar does not navigate (WSL) #26147
Area: apps/web
Steps to reproduce
- Run T3 Code (Beta) v0.1.3 on Windows 11 (10.0.26300) with the server in WSL2 (server-runtime preview, chrome-headless-shell 156.0.8078.70).
- Open the browser panel on a tab that no agent owns (
owner: "unclaimed"inpreview_status). - Type a full URL into the address bar, e.g.
http://localhost:5173orhttps://google.com, and press Enter.
Expected behavior The tab navigates to the URL.
Actual behavior
The URL shows up in the "Recently used" list, but the tab does not navigate. Nothing reaches the server: while I was typing URLs, server.trace.ndjson shows no ws.rpc.preview.navigate or other preview navigation span (only DesktopBrowserChannel.turn / PreviewAgentActivity.begin from agent turns). Navigation started by an agent (preview_open / preview_navigate) works fine in the same tab.
A related detail: a tab opened by an agent in an earlier session stayed owned by that session after /clear. The new session could not close it (PreviewAutomationControlInterruptedError, "Only the agent session that opened this tab can close it.", reason agentMismatch). After that, the tab was listed as unclaimed, but typing into the address bar still did nothing.
Possibly related: #21587 (closed, address bar stuck with WSL).
Impact: Major degradation or frequent failure: the built-in browser can only be driven through an agent.
Version: T3 Code (Beta) v0.1.3, server 0.1.3
tanstack-source added labelsbug
THEtheChad(GitHub profile, opens in a new tab) linked this to #31172
Another reproduction on t3 v0.1.7: Windows desktop app with the server in WSL2 (Ubuntu 24.04). The symptom is slightly different from the original report, and it matches the cause described in #31172. The panel draws a desktop-local page, while the address bar and the agent's tools follow the server tab.
Steps
- An agent opens a server-runtime tab with
preview_open(targetenvironment-port4200), logs into the app and navigates to/users/payments/3.preview_statusreportsowner: "agent"andvisible: false, even afterpreview_openwithopen: true.t3_preview_listreportsruntime: "server".
- The user looks at the panel.
Actual behavior
- The address bar shows
http://localhost:4200/users/payments/3. The page in the panel is the app's login screen, because it is a separate desktop-local page with no session. The agent's screenshots of the same tab show the logged-in page. - The user types
google.comin the address bar. The panel's page does navigate to Google, but the address bar immediately reverts tohttp://localhost:4200/users/payments/3. - The server tab never sees that navigation.
t3_preview_liststill shows the localhost URL. Inserver.trace.ndjson, the only navigate spans are the agent'spreview_navigatecalls.
The user and the agent therefore look at two different browsers. The URL bar shows the agent's tab, and the page shows a local one.
Expected behavior The panel streams the server tab the agent is driving, and typing in the address bar navigates that tab.
Impact An agent can't hand a prepared page (logged in, test data loaded) to the user in the built-in browser.
Workaround Use a normal browser at the same localhost URL, or log in again inside the panel's local page and ignore the address bar.
Comment drafted with Claude Code.
- An agent opens a server-runtime tab with
This is the same problem as #35424, so I'm closing it in favour of that one. If it is different, say how and it will be reopened.
juliusmarminge closed this
Sign in to join this conversation.
This still occurs in T3 Code 0.1.8 on the Windows desktop app connected to a local WSL2 server. Both the desktop client and server report 0.1.8.
Typing a URL and pressing Enter adds it to “Recently used”, but the browser returns to the blank start page without loading it. I reproduced this with
glassregister.societ.com, with an explicithttps://prefix, and with another site,google.ca.Floating preview is enabled. The browser worked for me previously, though I had not used it for roughly two weeks.
This appears consistent with the regression described in #31172. I have not tested that proposed fix.
Comment drafted with Codex.