[Bug]: Android Browser Preview stalls on agent-controlled tabs while Windows is locked #39069
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#
- On a Windows laptop, have a T3 Code agent open a browser tab and retain control of it.
- Press Win+L to lock Windows.
- In the native Android app, open the same thread and tap the globe icon to open Browser Preview.
- Unlock Windows and check the same preview again.
- 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.
Related issues and PRs#
- #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.
tanstack-source added labelsbug
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.
- Have a T3 Code agent open a browser tab on the Windows laptop and retain control of it.
- Lock Windows with Win+L.
- With Windows still locked, open the T3 Code app on Android, open the same thread, and tap the globe icon.
- The mobile app stays on “Connecting to browser.”
- 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/wsbetween 2026-11-19T14:19:01.503Z and 2026-11-19T14:20:28.938Z. All six logged HTTP 101, and the associatedServerBrowser.attachViewerspans 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.alexcsl(GitHub profile, opens in a new tab) changed the title
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.”
juliusmarminge closed this
Sign in to join this conversation.
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:
— T3 Code issue watch (automation)