Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: Android Browser Preview stalls on agent-controlled tabs while Windows is locked #39069

Closedalexcsl(GitHub profile, opens in a new tab) opened this issue 3 comments
alexcsl(GitHub profile, opens in a new tab)commented

Before submitting

  • I searched existing issues. #23139 describes a similar symptom when a Windows window covers T3 Code. The trigger here is locking the Windows session with Win+L while T3 Code is in the foreground.
  • I included the steps and observations needed to reproduce the failure.

Area

apps/desktop and apps/mobile, remote Browser Preview

Steps to reproduce

  1. On a Windows laptop, have a T3 Code agent open a browser tab and retain control of it.
  2. Press Win+L to lock Windows.
  3. In the native Android app, open the same thread and tap the globe icon to open Browser Preview.
  4. Unlock Windows and check the same preview again.
  5. For comparison, repeat the locked-host check with a browser tab opened manually in the T3 Code desktop app.

Expected behavior

The Android app can display and interact with the preview while the Windows host is awake and its session is locked.

Actual behavior

With the agent-opened and agent-controlled tab, Android stays on “Connecting to browser” while Windows is locked. Unlocking makes the preview appear immediately. A tab I opened manually in the desktop app was accessible from Android while Windows was still locked.

Impact

Major degradation. Android Browser Preview stalls for the agent-controlled tab while the host is locked.

Version or commit

T3 Code Nightly 0.1.11-nightly.20261119.4918, recorded in the Windows host logs. Android app 2.3.0.

Environment

Windows 11 laptop hosting T3 Code and the native T3 Code Android app as the remote viewer.

Workaround

Unlocking Windows restores the agent-controlled preview. Manually opened tabs were accessible while the host was locked.

  • #23139 tracks the covered-window case. #34935 changes capture-time throttling and describes a minimized Linux/Xvfb reproduction. Its effect on Windows Win+L with Android remains unverified.
  • #27092 covers screen locking on macOS and limits its rendering and capture changes to that platform.
  • #27735 proposes a headless fallback for a desktop tab that cannot produce frames and describes a minimized Linux reproduction.
  1. tanstack-source added labelsbug

  2. Thanks for the report. We haven't reproduced this yet. On a Windows 11 VM running T3 Code Nightly, a remote Browser Preview kept streaming through Win+L, both for a stream that was already running and for a new Android attach while locked. A VM may not lock the way a laptop does, so the repro needs your machine. Could you share:

    1. The Windows host log lines from the lock: from Win+L until the preview shows "Connecting to browser", with timestamps.
    2. Laptop model, GPU, and display setup (number of displays), and whether the display turns off when the session locks.
    3. Whether the preview was already streaming when you locked, or you opened it during the lock.
    4. The Android app build (version from its settings or Play listing).

    — T3 Code issue watch (automation)

  3. alexcsl(GitHub profile, opens in a new tab)commented

    Retest on a physical Windows laptop

    I reproduced this with the T3 Code Android app 2.3.0. This is a fresh mobile attach to a browser tab the agent opened and still controlled. A tab I opened manually in the desktop app worked from Android while Windows was locked.

    1. Have a T3 Code agent open a browser tab on the Windows laptop and retain control of it.
    2. Lock Windows with Win+L.
    3. With Windows still locked, open the T3 Code app on Android, open the same thread, and tap the globe icon.
    4. The mobile app stays on “Connecting to browser.”
    5. Unlock Windows. The preview appears immediately in the Android app without reopening it.

    The test window was 2026-11-19T14:18:15Z to 2026-11-19T14:21:15Z. A temporary wake request was active, and the Windows System log recorded no sleep or Modern Standby transitions in that window.

    The host logs show six Android requests to /api/preview-stream/ws between 2026-11-19T14:19:01.503Z and 2026-11-19T14:20:28.938Z. All six logged HTTP 101, and the associated ServerBrowser.attachViewer spans took 23 to 3,068 ms. The traces show the upgrades but do not record the first frame arriving on Android. I do not have the exact lock and unlock timestamps for individual requests.

  4. alexcsl(GitHub profile, opens in a new tab) changed the title

  5. Fixed by #39198, now on main: With Windows awake and locked, a fresh Android Browser Preview attachment to an agent-opened, agent-controlled tab now receives live frames instead of remaining on “Connecting to browser.”

  6. juliusmarminge closed this

Sign in to join this conversation.