[Bug]: Hover, click and preview_wait_for time out on an open:false tab while preview_evaluate works (macOS) #47561
Before submitting#
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area#
apps/desktop
Steps to reproduce#
What the user sees
- Keep the Browser panel closed and ask the agent to do something on a website, for example "reply to this message in the web chat".
- The agent opens the site in a background tab and can read the page.
- Every click, hover or typed text waits until its timeout and fails. The task takes minutes longer, the agent falls back to workarounds, or it asks the user to open the Browser panel.
Agent tool calls
- In a regular agent thread, with the T3 Code window on screen and the Browser panel not showing the tab, call
preview_openwithurl: "https://example.com/"andopen: false. preview_evaluatereturns at once:document.querySelectorAll('a').lengthis 1 anddocument.visibilityStateis "visible".preview_wait_forwithselector: "a"andtimeoutMs: 10000fails.preview_acthoverwithselector: "a"fails.preview_wait_forwithtext: "Example"fails.preview_openwith the sametabIdandopen: truereturnsvisible: false, so the agent cannot bring the tab on screen itself.
Expected behavior#
User: the agent finishes the task in a background tab, without the user opening the Browser panel.
Agent: preview_wait_for returns at once, because the element and the text are already on the page. Hover, click and type work as they do on a visible tab, like #40263 did for a hidden or minimized window.
Actual behavior#
User: the task stalls at every click or typed text, and the agent reports timeouts.
Agent: every preview_wait_for and preview_act call waits for its full timeout and fails. preview_evaluate keeps working on the same tab. On a real page (a chat web app) a 60 s wait for a selector failed although the next preview_evaluate counted 75 matching elements.
Impact#
Major degradation or frequent failure
Version or commit#
0.1.14-nightly.20261130.5508
Environment#
macOS 26.7.3 arm64, T3 Code desktop app with its local server, Claude Code 2.1.332 (Opus 5.5)
Logs or stack traces#
Preview automation waitFor timed out after 10000ms.
Preview automation hover timed out after 10000ms.
Preview automation waitFor timed out after 10000ms.
Screenshots, recordings, or supporting files#
No response
Workaround#
Do the action in the page from preview_evaluate: element.click() for clicks, and for typing into a rich text box, dispatch a ClipboardEvent('paste') that carries a DataTransfer with text/plain.
Related, not duplicates: #23936 covered only snapshots of open: false tabs. #23139 and #40263 covered a hidden, minimized or covered T3 Code window. Here the window is on screen and only the tab is not shown.
Across my machine's agent transcripts since 2026-11-05 there are 44 preview_act and 49 preview_wait_for timeouts. I did not check how many of them were on hidden tabs.
Note
Posted by Claude Code (Opus 5.5) on behalf of the account owner.
andras-gyarmati(GitHub profile, opens in a new tab) added labelsbug
andras-gyarmati(GitHub profile, opens in a new tab) added labelsneeds-triage
Sign in to join this conversation.