Before submitting#
Area#
Not sure
Steps to reproduce#
- Run t3-code as a service on a remote machine with npx command (nightly version)
- Run t3-code locally with npx command (nightly version)
- Pair remote to local via tailscale
- Use the remote instance daily from local workstration
- Update remote service via npx command periodically (nightly version)
After a while, the remote becomes unable to connect locally. Re-pairing is the only way I've found to resolve it - but it keeps happening and I'm not always in a position to SSH into the server to re-pair.
Also, every so often the update server option in the local t3-code UI is unable to update the server too.
Expected behavior#
I'd expect it to be stable and able to connect remotely, update remotely, etc. and not log in to find that I can't do any work because the server un-paired again.
Actual behavior#
After a while, the remote becomes unable to connect locally. Re-pairing is the only way I've found to resolve it - but it keeps happening and I'm not always in a position to SSH into the server to re-pair.
Impact#
Major degradation or frequent failure
Version or commit#
all nightly versions for the last month
Environment#
Ubuntu 24 on server, Linux Mint on local workstation
Logs or stack traces#
Screenshots, recordings, or supporting files#
No response
Workaround#
Re-pairing the remote is the only way I've found so far
Triage#
Two separate things are in this report, and neither is a new bug we can confirm from what's here. There is no version string, no Update error text, and no server log. A service restart does not by itself revoke a pairing session.
Re-pair#
Pairing-issued bearer sessions last 30 days from issue, and use does not extend them.
DEFAULT_SESSION_TTLisDuration.days(30)inapps/server/src/auth/SessionStore.ts. Neither pairing redemption path passes a session TTL. Direct Tailscale clients store that bearer and reuse it.markConnectedupdateslast_connected_atonly. Nothing writes a newexpires_at.exp. When it is past, verification fails withSessionTokenExpiredError.invalid_credentialas a blocked authentication error (The environment credential is invalid.), not as a retry. Recovery is a new pairing link from the host (t3 pair/t3 pair --tailscale), which is why this needs SSH.That is the behavior in #13055 and the direct-client half of #9884. Those stay the right issues for "make this configurable or sliding" and "should a direct client stay paired until revoke." This report is not a duplicate of either: it says the drop follows periodic
npxupdates of a service, and it also says in-app Update fails.A restart of a healthy service does not rotate
secrets/server-signing-key.binor clearauth_sessions. Both live under the T3 home (~/.t3/userdataunlessT3CODE_HOME/--base-diris set). Re-pair after everynpxupdate would be a different bug, and this report doesn't show it. The Settings row says Not connected only when the saved environment is idle. An expired session says Connection failed with the credential error. A dead service says Reconnecting or Offline.Update server#
In-app Update only works when the server is the background service (
serverSelfUpdate: "boot-service"). Children ask the existing launcher to switch runtimes. They never replace the unit or the launcher. That is why a layout change has to be installed on the host.Since #11510 (2026-09-13) the unit runs
~/.t3/runtime/versions/<version>/t3 __service-launcher. Older launchers still look fornode_modules/t3/dist/bin.mjsand reject every newer archive withThe requested target runtime is missing or incomplete.That is #11934, closed by #11940. Current nightlies fail that case earlier, inrunServicePreflight, with:This release requires a newer T3 Code service launcher. Update it on the server machine.The button cannot fix that. On the server, as the service user:--yesmatters over SSH. Without a terminal,t3 updatedoes not restart the service; it leaves.restart-pendingand the old process running.t3 service updateis not the update command. It is a deprecated alias oft3 service install.A systemd drop-in that still sets
ExecStart=toservice-launcher.mjskeeps the old launcher even after the base unit is rewritten. That showed up on #11934: the update command logged success, systemd hit the start limit, and nothing was listening. Re-pair does not help until the service is listening again. After it is, the old session should still work unlessexpires_athas passed.If this host is not the background service, and the unit is
npx t3@nightly serve ..., there is no Update button. The client offers Copy update command, and that command isnpx t3@<client-version>with no subcommand. Baret3starts another server. It does not upgrade a running service, and it fails if the port is already taken. Stop the service and start the sameserveflags on the version in the notice, or install the real service witht3 service installand then uset3 update.What would move this#
Please paste, with home paths and tokens removed:
t3 service status, andsystemctl --user cat t3code.serviceif this is Linux.~/.t3/userdata/logs/server.logandboot-service.log).issued_at,expires_at, andlast_connected_atonly. Ifexpires_atwas still in the future, this is not #13055.If the Update text is the missing-runtime or old-launcher message, that half is #11934 and a host
t3 update --yesis the fix. If the session row was already expired, the re-pair half belongs on #13055.