Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: Linux desktop update drops Local environment off, then hangs on the splash because the background service owns the home #31179

Openindishere(GitHub profile, opens in a new tab) opened this issue 0 comments

What happened

On Linux, T3 Code had been running as a client of the background service (t3code.service, Local environment off) since Oct 29. On Nov 4 the AppImage auto-updated to Nightly 0.1.8-nightly.20261104.4192. After that, every launch sat on the splash screen (T3 logo on black) indefinitely. No dialog appeared, the window never loaded, and Settings couldn't be reached to turn Local environment back off.

Two things combined:

  1. The update lost the client-mode setting. desktop-settings.json was rewritten at 17:07, two minutes after the AppImage was replaced at 17:05. The new file no longer contained localEnvironmentEnabled: false, and serverExposureMode and updateChannel were also gone. It held only mainWindowBounds, mainWindowMaximized and updateChannelConfiguredByUser. desktop.trace.ndjson shows 85 desktop.ipc.localEnvironment.getEnabled spans and no setLocalEnvironmentEnabled call, so the setting doesn't appear to have been changed from the UI.
  2. With Local environment back on, the desktop backend can never start, and on Linux the app hangs instead of reporting it. The background service owns ~/.t3/userdata, so the backend child exits with code 78 on every launch:
    ServerAlreadyRunningError: A T3 Code server already owns /home/<user>/.t3/userdata. Stop that server, or use a separate T3 home and pair with it, then retry. No server was stopped.
    The renderer then keeps failing GET http://127.0.0.1:3774/.well-known/t3/environment (transport error) and logs DesktopLocalEnvironmentAuthBackendNotConfiguredError for desktop:get-local-environment-bearer-token. The window stays on the splash screen. #22820 describes the same owner-lock conflict on macOS, where at least a "This T3 home is unavailable" dialog appears and the app quits. Here neither happened.

Steps to reproduce

  1. On Linux, install the background service (t3 service install) and turn off Settings › Connections › Local environment in the desktop app, so the app works as a client.
  2. Let the desktop AppImage auto-update to a newer nightly. In this case: an unrecorded earlier nightly, with runtime 0.1.4-nightly.20261028.3841 → 0.1.8-nightly.20261104.4192.
  3. Reopen the app. localEnvironmentEnabled is gone from desktop-settings.json, and the app hangs on the splash screen.

I haven't confirmed which write dropped the key (the update or the first launch after it). The settings schema is the same in both versions, so it may be a whole-document fallback to defaults followed by a setMainWindowBounds write.

Expected

  • Updates keep localEnvironmentEnabled: false, along with the other persisted desktop settings.
  • If the backend exits with ServerAlreadyRunningError while a current service owns the home, the app should offer to turn off Local environment and connect to that service (as #22820 suggests), and should never hang on the splash screen.

Version

Desktop and service: 0.1.8-nightly.20261104.4192 (AppImage, Nightly channel). Previous service runtime: 0.1.4-nightly.20261028.3841.

Environment

Zorin OS 18 (Ubuntu 24.04 base), x86_64, GNOME on X11, AppImage. Background service via a systemd user unit (t3code.service). The app also has an SSH environment to another machine.

Workaround

With the app closed, set "localEnvironmentEnabled": false in ~/.t3/userdata/desktop-settings.json, keep t3code.service running, and reopen the app. It loads immediately and connects to its saved environments.

#22820 (same owner-lock conflict on macOS, with a dialog), #22983, #20250, #9194.

  1. tanstack-source added labelsbug

Sign in to join this conversation.