[Bug]: Agent-opened server-browser tab never appears on a remote (Mac) client, while the server reports it open and revealed #45973
Before submitting#
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area#
apps/web
Steps to reproduce#
- Run T3 Code (desktop) on a Linux host. That host's server is the environment.
- Connect to that environment from T3 Code on a Mac, over the remote connection.
- In a thread on that environment, have the agent call
preview_openwith an https URL (here a sign-in page), default options (opennot set, so true). - Look at the thread on the Mac.
Expected behavior#
The agent's server-browser tab floats over the chat on the Mac (auto-show is on by default), or at least appears as a tab in the thread's browser panel, so the user can take control and sign in.
Actual behavior#
Nothing appears on the Mac: no floating preview, no tab in the thread's browser panel, even after opening the browser panel in that thread. Meanwhile the server reports the tab as open and revealed:
preview_openreturnsavailable: true,visible: false,control.owner: "agent".t3_preview_listshows the session withruntime: "server",reveal: true,revealRequest: {force: false}, navStatus Success.visiblestays false (tab.viewers.size === 0): no client ever attached a viewer.- A browser tab the user opened from the Mac in the same thread is a desktop tab and does not show up
in
t3_preview_list(expected), so the two sides never see each other's tabs.
The agent gets no signal that nobody can see the tab: the call succeeds, and the only hint is
visible: false, which is also the normal state right after opening.
Impact#
The main use of agent browser tabs for us is handing a sign-in (with 2FA) to the user and then
letting the agent carry on in that session. With a remote client this flow is dead, and we fell back
to VNC into the host, which was worse. There is no force option on preview_open, so the agent
cannot push the reveal past the client's auto-show logic either.
Version or commit#
Server and host desktop app: 0.1.9 (Arch package t3code-bin 0.1.9-1). Mac client: not checked
yet. We know 0.1.14 nightlies exist; if this is fixed there, a pointer would be appreciated.
Environment#
- Host: Linux (Hyprland, Wayland), T3 desktop app running with its built-in server.
- Client: T3 Code desktop on macOS, connected to the Linux environment remotely.
- Agent: Claude Code inside T3.
Logs or stack traces#
From reading the shipped bundle against main: the server advertises
capabilities.serverBrowser: true, and revealServerTabs in
apps/web/src/components/preview/agentOpenedPreviews.ts should open the floating preview for a
fresh reveal: true server tab. So either the Mac client never gets the session list for this
thread, or freshlyRevealedServerTabs drops it (for example, listLoaded was false when it
arrived, or the tab was opened before the client's first list and so counts as baseline). Server
traces show PreviewManager.open / announceSession and subscribePreviewEvents, but no viewer
attach.
Workaround#
None inside T3. Signing in through VNC to the host works, but that defeats the point.
tanstack-source added labelsbug
juliusmarminge added labelsneeds more info
Sign in to join this conversation.
@Parallex-Tech Which T3 Code version is the Mac app running, and how did it connect to the Linux host (T3 Connect, a direct LAN/Tailscale URL with a pairing code, or an SSH environment)? In my test, a client paired directly with a remote host showed the agent's tab every time, on both 0.1.9 and main.