Before submitting#
Area#
apps/server
Steps to reproduce#
- In a thread on a Linux desktop, have the agent call
preview_open for a site that needs a login (in my case the Mux dashboard).
- Take control of the tab and sign in (GitHub OAuth with 2FA). Release control so the agent can keep working.
- Keep the agent working in the tab until the automation host drops. For me a
preview_click timed out after 15000ms, and the next preview_snapshot failed with PreviewAutomationNoAvailableHostError.
- Let the agent recover:
preview_status now reports available: false and no tab, so it calls preview_open again with the same URL.
Expected behavior#
The new tab still has the session from step 2, or the original tab comes back, so I don't have to sign in again.
Actual behavior#
preview_open creates a new tab (tab_3_… instead of tab_1_…) that lands on the site's login page. The cookies from the sign-in a minute earlier are gone, so I had to go through OAuth and 2FA again before the agent could continue.
This happened twice in the same thread within about ten minutes. Every host drop costs a full re-login, which makes the preview impractical for dashboard setup work.
Impact#
Major degradation or frequent failure
Version or commit#
0.0.46-nightly.20261008
Environment#
CachyOS Linux, T3 desktop app with local server, Codex provider (gpt-6.1-sol)
Note
Grok responding on behalf of Julius.
Closing as a duplicate of #16921 — a timed-out preview call evicts the shared server-browser host (
PreviewAutomationNoAvailableHostError), which drops tab assignments. The agent then callspreview_openagain into a fresh isolated context, so the login from a minute earlier is gone. That sequence is already tracked there (including the same signed-out reopen on macOS), and Linux matches.Open fixes: #16941 / #17871 (keep the host/tab assignments across a single request timeout) and #18873 for the signed-out headless side (#16901). Until those land, staying on the thread while the agent opens the new tab is the practical workaround.