You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f9248df
Browse filesBrowse the repository at this point in the historyBrowse files
fix(web,server): the server update banner copies a command that works under systemd
When a server cannot update itself, the banner copied `npx t3@<version>`
and said to relaunch "using the same subcommand and options". The command
dropped the subcommand, gave no hint that the old server must finish
exiting first, and could never work when a systemd unit restarts the
server on its pinned version.
The server now reports whether it runs headless (`serve`) and which
systemd unit, if any, holds it. The client copies the command that fits:
switching a user unit to T3 Code's own service, restarting a system unit
after its version is changed, or relaunching with the right subcommand.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
command: `${systemctl} disable --now ${unit.name} && ${launch} service install`,
140
+
label: "Copy update command",
141
+
title: "Update command copied",
142
+
description: `${unit.name} on ${serverLabel} keeps restarting this server on its old version. Run the command there: it turns ${unit.name} off and installs T3 Code's own service on t3@${targetVersion}, which updates in one click next time. Running agents stop.`,
143
+
};
144
+
}
145
+
if(unit){
146
+
return{
147
+
command: `${systemctl} restart ${unit.name}`,
148
+
label: "Copy restart command",
149
+
title: "Restart command copied",
150
+
description: `The system service ${unit.name} runs this server on ${serverLabel}. Change the t3 version in its ExecStart to t3@${targetVersion}, then run the command.`,
description: `On ${serverLabel}, stop t3 (Ctrl+C where it runs) and wait for it to exit, then run the command, adding any options you started it with. This does not update an installed t3 command.`,
0 commit comments