Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: After Update i get asked for a local remote to pair with this environment #20871

ClosedJopo-JP(GitHub profile, opens in a new tab) opened this issue 3 comments

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

  1. I updated the app to 0.1.0 from 0.0.46
  2. Started the app.
  3. Need to pair
Image

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

  1. Jopo-JP(GitHub profile, opens in a new tab) added labelsneeds-triage

  2. 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 (bootstrapServerAuth in apps/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.

    1. Do you have WSL installed? If so, is T3 Code (t3 serve or a t3code service) running inside it, or is anything else using port 3773? You can check with netstat -ano | findstr :3773.
    2. Which build were you on before the update? Was it a 0.0.46 nightly?
    3. Please attach server-child.log from %USERPROFILE%\.t3\userdata\logs\, captured right after you see the pairing screen.
  3. juliusmarminge added labelsneeds more info

  4. juliusmarminge added labelsvia-triage

  5. juliusmarminge removed labelsneeds-triage

  6. juliusmarminge removed labelsbug

  7. 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 my wsl:Ubuntu environment, that service starts too, listens on 127.0.0.1:3773 and 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 by systemctl --user disable --now t3code.service inside 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.json

    The 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 the ServerAlreadyRunningError on every launch since the update. server-child.log hasn't been written since 2026-08-16, so it doesn't cover this. I can share relevant excerpts from desktop.trace.ndjson if needed.

    server-child-wsl_Ubuntu.log

    Answer to 2: yes, I was on the 0.0.46 nightly before.

  8. Closing as a duplicate of #8341. Your follow-up confirms the same Windows desktop failure: DesktopConnectionCatalogStoreProtectionError during decrypt-catalog blocks the local environment and saved connections, and renaming connection-catalog.json with 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.

  9. juliusmarminge closed this

Sign in to join this conversation.