[Bug]: Hidden preview tabs report available:true but every automation call fails (No target available / Execution context was destroyed) #24353
Area#
apps/desktop (collaborative browser / preview automation)
Steps to reproduce#
- In one thread, have an agent open several background preview tabs with
preview_open(open:false, profiledefault) on logged-in web apps, for example a Coolify dashboard with/terminaland a Next.js app. - Let the thread idle for a few hours. The tabs stay hidden and are never shown.
- Call
preview_statusfor one of these tabs, thenpreview_evaluateorpreview_snapshot.
Expected behavior#
One of two things:
- The automation reattaches to the tab, or reloads it, and the call works.
preview_statusreports the tab as not automatable, for exampleavailable:falsewith a reason such as "tab suspended/detached, reopen it". The call then fails fast with that reason.
Actual behavior#
preview_status reports the tab as available: true and loading: false with title: null. Every automation call then fails:
preview_evaluate:cdpSession.send: Protocol error (Runtime.evaluate): No target availablepreview_snapshot:page.evaluate: Execution context was destroyed, most likely because of a navigation., repeatedly, although no navigation is happening.
Observed effects:
- All 4 old hidden tabs in the thread were in this state at the same time.
- A fresh
preview_openwithreuseExistingTab:falsein the same profile works immediately, with cookies and logins intact. Only the old tabs are broken. - One fresh tab on a page with a websocket terminal (xterm.js) went bad within minutes.
preview_snapshotandpreview_evaluatetimed out after 15 s.preview_openwithtabIdandopen:true, to reveal it, then hung for 660000 ms before timing out.
Why it matters: an agent cannot tell "tab detached" from "page broken" or "logged out". Our agent concluded that the user's session had expired and twice asked the user to log in again. The user was in fact logged in the whole time.
Impact#
Major degradation or frequent failure
Version or commit#
0.0.46-nightly.20261015.3171
Environment#
macOS 26.6.2, T3 Code (Nightly) desktop, Claude agent provider (Opus 5.5)
Logs or stack traces#
preview_status(tab_5) -> {"available":true,"visible":false,"title":null,"loading":false,"control":{"owner":"unclaimed","generation":0}}
preview_evaluate(tab_5) -> Preview automation evaluate failed: cdpSession.send: Protocol error (Runtime.evaluate): No target available
preview_snapshot(tab_5) -> Preview automation snapshot failed: page.evaluate: Execution context was destroyed, most likely because of a navigation.
preview_snapshot(tab_1j, fresh) -> Preview automation snapshot timed out after 15000ms.
preview_open(tab_1j, open:true) -> Preview automation open timed out after 660000ms.
Workaround#
Open a new tab with preview_open (reuseExistingTab:false) and stop using the old one.
Possibly related, not duplicates: #15579 (hidden webviews stay alive), #23015 (all automation times out on Windows unattended).
JanMolcik(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.
Closing my own report. I searched too narrowly before filing.
preview_open({tabId, open:true})hanging for 660000 ms, is #16567. That issue was fixed on 2026-10-21, and #23936 tracks what remains. My build (0.0.46-nightly.20261015) predates that fix.available:truewhilepreview_evaluatefails withNo target available. I have only seen this on the same outdated build. I will update and reopen, or file a new issue, if it reproduces on a current build.