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 c3ffcff
Browse filesBrowse the repository at this point in the historyBrowse files
feat(cli): make t3 update ask before restarting and point out a manual server
t3 update restarted the background service unconditionally and said
nothing about a server the user had started by hand, which kept running
the old version with no hint. Now the command states what it will touch
before downloading, asks for consent to restart the service (a restart
interrupts agent turns, terminals, and remote clients), and from a
non-interactive shell leaves the service alone unless --yes is passed.
A server started by hand is never touched; the summary names its origin
and pid so the user can restart it themselves.
The server records whether it is supervised by the boot service in
server-runtime.json so a CLI can tell the two cases apart; servers from
before that field are recognised by lineage (the unit's cgroup on
Linux, the launcher as parent on macOS).
Co-Authored-By: Claude Fable 5 <[email protected]>
yield*Console.log(`t3 ${targetVersion} is at ${runtime.entryPath}`);
436
+
yield*Console.log("");
437
+
yield*Console.log(`t3 ${targetVersion} is installed at ${runtime.entryPath}`);
341
438
if(Option.isSome(repointed)){
342
439
yield*Console.log(` ${repointed.value} now runs ${targetVersion}`);
343
440
}else{
344
441
yield*Console.log(` Run it as ${runtime.entryPath}, or point your \`t3\` launcher at it.`);
345
442
}
346
443
if(serviceUpdated){
347
-
yield*Console.log(` Background service updated to ${targetVersion}`);
444
+
yield*Console.log(` Background service restarted on ${targetVersion}`);
445
+
}elseif(serviceInstalled){
446
+
yield*Console.log(
447
+
` Background service still running ${status.installedVersion??currentVersion}. Run \`t3 service update\` when you are ready to restart it.`,
448
+
);
348
449
}elseif(status.installed&&!servesThisHome){
349
450
yield*Console.log(
350
451
` The background service serves ${status.installedBaseDir??"another T3 home"} and was left unchanged.`,
351
452
);
352
453
}
454
+
if(foreground!==undefined){
455
+
yield*Console.log(
456
+
` A server started by hand is still running ${currentVersion} at ${foreground.origin} (pid ${foreground.pid}). Stop it and start it again to pick up ${targetVersion}.`,
0 commit comments