[Bug]: After Update i get asked for a local remote to pair with this environment #20871
Before submitting#
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area#
apps/desktop
Steps to reproduce#
- I updated the app to 0.1.0 from 0.0.46
- Started the app.
- Need to pair
I'm on Windows and tried to restart the pc. Not working. If i restart the app again, sometimes i can go to settings etc, but usage etc is empty, cant add new env and cant create projects, while local env is active even.
i uninstalled it and reinstalled it, didnt work out.
Expected behavior#
Start using t3 code
Actual behavior#
Prompted for pairing for local envoirment
Impact#
Major degradation or frequent failure
Version or commit#
No response
Environment#
Windows 11, t3 0.1.0
Logs or stack traces#
T3 Code (Beta) 0.1.0
Path: /pair
Time: 2026-10-17T09:31:09.521Z
PrimaryEnvironmentRequestError
at n.fromCause (t3code://app/assets/primary-D8_6fmnp.js:1:754)
at t3code://app/assets/primary-D8_6fmnp.js:1:2138
at async X (t3code://app/assets/primary-D8_6fmnp.js:1:3163)
at async Q (t3code://app/assets/primary-D8_6fmnp.js:1:3426)
at async Object.beforeLoad (t3code://app/assets/main-Optk7rV0.js:27:85864)
at async fg (t3code://app/assets/main-Optk7rV0.js:2:30985)
at async t3code://app/assets/main-Optk7rV0.js:2:50141
Caused by:
HttpClientError
at catch (t3code://app/assets/utils-Hcg8Weh5.js:17:1371)
at t3code://app/assets/utils-Hcg8Weh5.js:13:6258
at ~effect/Utils/internal (t3code://app/assets/utils-Hcg8Weh5.js:3:2275)
at n.~effect/Effect/args (t3code://app/assets/utils-Hcg8Weh5.js:13:6251)
at ~effect/Effect/evaluate (t3code://app/assets/utils-Hcg8Weh5.js:13:5419)
at mo.runLoop (t3code://app/assets/utils-Hcg8Weh5.js:13:2631)
at mo.evaluate (t3code://app/assets/utils-Hcg8Weh5.js:13:1770)
at t3code://app/assets/utils-Hcg8Weh5.js:13:6542
at t3code://app/assets/utils-Hcg8Weh5.js:13:6319
Caused by:
TypeError: Failed to fetch
at try (t3code://app/assets/utils-Hcg8Weh5.js:17:1232)
at ca.<anonymous> (t3code://app/assets/utils-Hcg8Weh5.js:13:6294)
at ~effect/Effect/evaluate (t3code://app/assets/utils-Hcg8Weh5.js:13:6502)
at mo.runLoop (t3code://app/assets/utils-Hcg8Weh5.js:13:2631)
at mo.evaluate (t3code://app/assets/utils-Hcg8Weh5.js:13:1770)
at t3code://app/assets/utils-Hcg8Weh5.js:13:6542
at t3code://app/assets/utils-Hcg8Weh5.js:13:6031
Screenshots, recordings, or supporting files#
Bildschirmaufnahme 2026-10-17 113628_github.mp4
Workaround#
No response
Jopo-JP(GitHub profile, opens in a new tab) added labelsbug
Jopo-JP(GitHub profile, opens in a new tab) added labelsneeds-triage
juliusmarminge added labelsneeds more info
juliusmarminge added labelsvia-triage
juliusmarminge removed labelsneeds-triage
juliusmarminge removed labelsbug
Thanks, found it. Two things were going on:
1. Old WSL background service (as in #16826 / #19735) I had once installed the T3 background service inside WSL (
t3code.service, systemd user unit), still on 0.0.40. Whenever T3 Code starts mywsl:Ubuntuenvironment, that service starts too, listens on127.0.0.1:3773and owns~/.t3/userdata. So the app's own WSL backend (port 3774) failed on every launch:ServerAlreadyRunningError: A T3 Code server already owns /home/nikolas/.t3/userdata. Stop that server, or use a separate T3 home and pair with it, then retry. No server was stopped. (instanceId wsl:Ubuntu, port=3774, exit code 78)Updating the service to 0.1.0 (
npx t3@0.1.0 service update) did not help, since it still owns the same userdata. Fixed bysystemctl --user disable --now t3code.serviceinside WSL.2. Unreadable connection catalog Even after that I still got "Invalid pairing token". desktop.trace showed:
DesktopConnectionCatalogStoreProtectionError: Desktop connection catalog protection failed during decrypt-catalog at C:\Users\Nikolas\.t3\userdata\connection-catalog.jsonThe file was from 2026-09-19 (written by 0.0.46 nightly) and survived the uninstall/reinstall. After renaming it (with T3 Code closed), the app created a new one and starts normally now.
Logs Attached:
server-child-wsl_Ubuntu.log, which shows theServerAlreadyRunningErroron every launch since the update.server-child.loghasn't been written since 2026-08-16, so it doesn't cover this. I can share relevant excerpts fromdesktop.trace.ndjsonif needed.Answer to 2: yes, I was on the 0.0.46 nightly before.
Closing as a duplicate of #8341. Your follow-up confirms the same Windows desktop failure:
DesktopConnectionCatalogStoreProtectionErrorduringdecrypt-catalogblocks the local environment and saved connections, and renamingconnection-catalog.jsonwith the app closed restores startup. The original catalog key failure is still tracked there.The separate WSL background-service conflict was resolved by disabling
t3code.service; the related Windows/WSL startup conflict is tracked in #16826. No new runtime reproduction was run for this duplicate triage; this classification uses your logs and confirmed recovery.juliusmarminge closed this
Sign in to join this conversation.
Note
Grok responding on behalf of Julius.
I can't tie this to a change in 0.1.0 yet, so I need a few details first.
The "Invalid pairing token" message in your screenshot appears when the app sends its own built-in token to the local server and the server rejects it (
bootstrapServerAuthinapps/web/src/environments/primary/auth.ts). That usually means a different T3 Code server is answering on the app's port. Then "Failed to fetch" means that, on the next launch, nothing answered at all. We track one known cause in #16826: a T3 Code server inside WSL takes over the same port (3773 by default) on Windows. A related case is #19735, where the old WSL server keeps running after an update.t3 serveor at3codeservice) running inside it, or is anything else using port 3773? You can check withnetstat -ano | findstr :3773.server-child.logfrom%USERPROFILE%\.t3\userdata\logs\, captured right after you see the pairing screen.