Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

updating.md

95 lines6.2 KB

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​
18Updating restarts the server, so the connection will disappear briefly. **Settings** → **General**
19has a **Continue threads after server updates** preference. It is off by default. When enabled, the
20update buttons automatically resume supported provider threads after the replacement server is
21ready. Providers with native promptless continuation use it; other providers receive a short
22instruction to continue where they left off. Terminal commands and other running work may still be
23interrupted during the update.
24​
25The update does not remove saved threads, settings, or project files.
26​
27## Choose the Action You See
28​
29| Action | What to do |
30| -------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
31| **Update server** | Available for the T3 Code Linux background service and for servers run by a current T3 Code desktop app. Select the button and leave T3 Code open while it downloads, installs, restarts, and reconnects. For desktop-app servers this closes and relaunches the desktop app on that machine. If installation fails, the desktop app stays open and reconnects to its server. |
32| **Update the desktop app** | Shown for desktop apps that predate remote updates. Open the T3 Code desktop app on the machine that runs the server and install the app update there. Reopen it if needed. |
33| **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. |
34​
35The available action depends on how that server was started. T3 Code does not update connected
36servers silently in the background.
37​
38An older background-service launcher may ask you to run the exact
39`npx t3@<version> service update` command on the server machine. That one local update installs the
40rollback support needed for later remote updates, including versions that change the database.
41​
42After selecting **Update**, the notice becomes a live status line: **Downloading…** while the new
43version is fetched and verified, then **Restarting…** while the server restarts into it. The same
44status appears in the conversation and in Connections, so navigating between them does not lose the
45update. A failure remains visible with its error and an option to retry.
46​
47**Copy update command** gives you `npx t3@<client-version>`, which relaunches the server directly
48at the matching version. Add whatever startup options you normally use.
49​
50If the server instead runs as the T3 Code background service, update the service on the host and
51pin the same version:
52​
53```sh
54npx t3@<client-version> service update
55```
56​
57`service update` installs the version of the CLI that invoked it, so `npx t3@latest service update`
58only resolves the skew when your client happens to be on the latest release. The exact version from
59the warning always works.
60​
61See [Running T3 Code in the Background](./background-service.md) for install, status, and removal
62commands.
63​
64## Nightly desktop release notes
65​
66The desktop app shows a compact release-notes preview when a nightly update is available. Changes
67appear newest first within each release. Each release links to its exact page on GitHub, even when
68all changes fit in the preview.
69​
70The preview shows up to eight changes from each of six releases. When it leaves out changes or older
71releases, it shows the exact number and links to the rest. Contributor credits do not count as
72changes.
73​
74## After the Update
75​
76Keep the web or desktop app open while the server restarts. The update completes only after the
77service launcher reports that exact update committed and the replacement server is ready to accept
78commands. A rollback is reported immediately instead of waiting for a generic reconnect timeout.
79​
80If a step fails:
81​
821. Retry the offered action once.
832. Make sure you updated the machine named in the warning, not only the device you are using.
843. For a command-line server, relaunch it with `npx t3@<client-version>`, replacing
85 `<client-version>` with the client version shown in the warning.
86​
87## The Mobile App
88​
89The mobile app keeps itself current on its own. When it finds a new version, it downloads it in the
90background and installs it automatically the next time you leave the app. Unsent drafts and queued
91messages are saved before the restart. Only if the app stays open long enough that the update never
92gets that chance does it ask whether to install right away; choosing **Later** is safe and keeps the
93automatic install armed.
94​
95For remote connection setup and access troubleshooting, see [Remote Access](./remote-access.md).