Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: Preview tab loses its login session after the automation host reconnects #18971

Closedhighmanphil(GitHub profile, opens in a new tab) opened this issue 1 comment

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/server

Steps to reproduce

  1. 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).
  2. Take control of the tab and sign in (GitHub OAuth with 2FA). Release control so the agent can keep working.
  3. 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.
  4. 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)

  1. 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 calls preview_open again 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.

  2. juliusmarminge added labelsduplicate

  3. juliusmarminge closed this

Sign in to join this conversation.