Open History to see the last commit
1# Keeping T3 Code in Sync
2
3The T3 Code web or desktop app and the server it connects to work best when they use the same
4version. If they do not match, T3 Code shows a warning with the right update option for that server.
5
6## Where to Find the Update
7
8You may see the warning in either of these places:
9
10- above the message box in the current conversation
11- **Settings** → **Connections**, beside the affected connection
12
13Dismissing the conversation warning only hides that reminder for those two versions. It does not
14update the server, and the version difference remains visible in Connections.
15
16## Before You Update
17
18Let active agent work and terminal commands finish first. Updating restarts the server, so the
19connection will disappear briefly and work that is still running may be interrupted.
20
21The update does not remove saved threads, settings, or project files.
22
23## Choose the Action You See
24
25| Action | What to do |
26| -------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
27| **Update server** | Available for the T3 Code Linux background service. Select the button and leave T3 Code open while it prepares, tests, restarts, and reconnects. |
28| **Update the desktop app** | Open the T3 Code desktop app on the machine that runs the server and install the app update there. Reopen it if needed. |
29| **Copy update command** | Copy the command, open a terminal on the server machine, stop the current T3 Code server, and relaunch it with the copied command and any startup options you normally use. |
30
31The available action depends on how that server was started. T3 Code does not update connected
32servers silently in the background.
33
34An older background-service launcher may ask you to run the exact
35`npx t3@<version> service update` command on the server machine. That one local update installs the
36rollback support needed for later remote updates, including versions that change the database.
37
38After selecting **Update**, the notice becomes a live status line: **Downloading…** while the new
39version is fetched and verified, then **Restarting…** while the server restarts into it. The same
40status appears in the conversation and in Connections, so navigating between them does not lose the
41update. A failure remains visible with its error and an option to retry.
42
43**Copy update command** gives you `npx t3@<client-version>`, which relaunches the server directly
44at the matching version. Add whatever startup options you normally use.
45
46If the server instead runs as the T3 Code background service, update the service on the host and
47pin the same version:
48
49```sh
50npx t3@<client-version> service update
51```
52
53`service update` installs the version of the CLI that invoked it, so `npx t3@latest service update`
54only resolves the skew when your client happens to be on the latest release. The exact version from
55the warning always works.
56
57See [Running T3 Code in the Background](./background-service.md) for install, status, and removal
58commands.
59
60## After the Update
61
62Keep the web or desktop app open while the server restarts. The update completes only after the
63service launcher reports that exact update committed and the replacement server is ready to accept
64commands. A rollback is reported immediately instead of waiting for a generic reconnect timeout.
65
66If a step fails:
67
681. Retry the offered action once.
692. Make sure you updated the machine named in the warning, not only the device you are using.
703. For a command-line server, relaunch it with `npx t3@<client-version>`, replacing
71 `<client-version>` with the client version shown in the warning.
72
73## The Mobile App
74
75The mobile app keeps itself current on its own. When it finds a new version, it downloads it in the
76background and installs it automatically the next time you leave the app. Unsent drafts and queued
77messages are saved before the restart. Only if the app stays open long enough that the update never
78gets that chance does it ask whether to install right away; choosing **Later** is safe and keeps the
79automatic install armed.
80
81For remote connection setup and access troubleshooting, see [Remote Access](./remote-access.md).