[Bug]: Disconnected from T3 Server Reconnecting in 1s... Attempt 1/8 on every single message
Before submitting
- [x] I searched existing issues and did not find a duplicate.
- [x] I included enough detail to reproduce or investigate the problem.
Area
apps/server
Steps to reproduce
Starte the App on Mac and chat with GPT5.5 in a project of yours.
Expected behavior
No disconnects, or at least after reconnect show what GPT is really doing.
Actual behavior
No disconnect at all, or after reconnect show me whats going on. I am on the current nightly but also had this on the 2 nightlys before. Since a couple of days using the GPT 5.5 model I always get "Disconnected from T3 Server Reconnecting in 1s... Attempt 1/8". With every single request. The app then reconnects and shows me the working timer but does not update the UI anymore. Timer will also never end. I then need to open the Codex App and see how my task is going on or see the finished message.
Impact
Major degradation or frequent failure
Version or commit
0.0.22-nightly.20260427.135
Environment
macOS 26.4.1
Logs or stack traces
Screenshots, recordings, or supporting files
Bildschirmfoto 2026-04-27 um 07.55.09.png
Workaround
No response
First it was the white screen where sessions would just die. now this. back to the CLI again until its fixed. or maybe just not coming back again. annoying.
Same behaviour every 5-10 seconds it was OK like 2 weeks ago but when you have more and more messages in history it is worse. Also noticed when you have some really long conversations it is even bigger problem and they are loading after multiple refreshes and ater clicking to different conversations.
Connected via tailscale to VPS.
I'm encounterign the same issue, t3code on windows, using Opencode Go
Also encountering now on latest release
Any idea how to fix it? It is practically unusable...
I figured this out. The way to solve this is to remove as many of the threads as possible from a given project. I found that oftentimes the VCS process for looking up status across many, many work trees will time out. We should probably look into limiting the number of lookups that we do or auto expire delete archive threads.
Edit: This seems to have re-emerged even after cleaning up all of these dangling references.
I found and fixed one concrete cause of this reconnect loop on Windows 11 with the iPhone TestFlight app over Tailscale. This may not be the root cause for every report here, but it is worth checking when the remote client pairs successfully and then reconnects every few seconds.
Symptom
- QR pairing completed successfully.
- The remote UI loaded, but showed
Failed to connect. Reconnecting...repeatedly and could not reliably send messages. - Tailscale connectivity between the desktop and phone was healthy.
Root cause
The T3 backend was healthy and listening on 0.0.0.0:3773, but the clean Tailscale HTTPS endpoint embedded in the QR code was still proxying to an old local port (127.0.0.1:8081) where nothing was listening.
Pairing itself was valid, but after pairing the client connects directly to the backend URL in the pairing link. The hosted pairing service does not proxy application traffic, so the stale Tailscale Serve target caused the HTTP/WebSocket reconnect loop.
Diagnose
Get-Content "$env:USERPROFILE\.t3\userdata\server-runtime.json"
Get-NetTCPConnection -State Listen |
Where-Object LocalPort -In 3773,8081,8443,8765 |
Format-Table LocalAddress,LocalPort,OwningProcess
tailscale serve status
Invoke-WebRequest -UseBasicParsing `
http://127.0.0.1:3773/.well-known/t3/environment
The direct T3 request returned 200, while tailscale serve status showed the clean HTTPS hostname pointing at the wrong local port.
Fix
tailscale serve --bg http://127.0.0.1:3773
Afterward, the route was:
https://<machine>.<tailnet>.ts.net/
|-- proxy http://127.0.0.1:3773
Verification against https://<machine>.<tailnet>.ts.net/.well-known/t3/environment returned 200 (about 12-14 ms after the first request). A WebSocket upgrade without credentials reached T3 and correctly returned 401 missing_credential, confirming that the HTTPS proxy and auth boundary were working.
After force-closing and reopening the already-paired TestFlight app, the reconnect loop stopped and messages worked normally. No new pairing token was needed.
It may be useful for T3 to reconcile the Tailscale Serve target with the active runtime port before advertising the HTTPS endpoint or generating a QR code, and warn when the hostname resolves but points to a dead/different backend.
I have t3 working with Windows + Linux + MacOS on my fleet. Linux and MacOS seem fine, on Windows it's almost impossible to do any work.
I have t3 working with Windows + Linux + MacOS on my fleet. Linux and MacOS seem fine, on Windows it's almost impossible to do any work.
![]()
Roll back to 0.0.30-nightly.20260728.931
I actually updated to the last nightly and the problem is solved.
I found a workaround on macOS:
During the brief moments when T3 Code reconnected, I removed every project currently loaded in the app. Once all projects were removed, the reconnect loop stopped and T3 Code worked normally again.
This suggests that something associated with one of the existing projects, such as its threads, worktrees, or VCS state, may have been triggering the issue.
Environment:
- MacBook Air M1, 2020
- macOS 27.0 Beta (26A5388g)
Confirmed on T3 Code 0.0.31, macOS 15.3 arm64, using the local desktop backend. A single thread on the main checkout remains responsive; with 4–6 concurrent worktree-backed threads, UI responsiveness degrades and reconnect notifications begin.
In a recent approximately 18-minute rolling server trace, I observed roughly 950 Git/VCS process spans and 351 vcs.listRefs requests. Most Git-operation spans targeted T3-managed worktrees. The trace files also rotated roughly 100 MB during that window.
This appears related to the VCS/backend-starvation reports in #4773 and the Git-concurrency work in #4778, but I have not established that checkpointing, workspace indexing, or reconnect resubscription is the root cause.
Environment: T3 Code 0.0.31; macOS 15.3 arm64; local desktop server; claude && codex.
I can provide a sanitized trace window and recording tied to an exact reconnect timestamp if useful.
Thanks for the detailed report. We believe this is fixed by PR #5561, PR #5572, and PR #5147.
Main now requires three missed heartbeat windows before disconnecting, avoids repeated command and editor scans during reconnect, refreshes authoritative shell state on a new session, and caps stale thread replay instead of decoding the full event log. These changes directly address the load-triggered reconnect and stale-history cycle described here. The last macOS multi-worktree failure predates those changes.
I'm closing this as fixed as part of an automated pass on all open issues. If this still happens in a current build that includes PR #5561, PR #5572, and PR #5147, please reply with the T3 Code version and fresh logs or reproduction details, and we can reopen it.