The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 06:00 UTC
fix(web): an off-track desktop build no longer says "Up to date" (#39302)
Julius Marminge committed
Nov 19, 2026 at 12:01 UTC
cb2a488c67bf577c58750a0d1335e82c7322288a
12 files changed
+40
apps/web/src/components/desktopUpdate.logic.test.ts
+15
@@ -58,6 +58,21 @@ describe("desktop update button state", () => {
58
);
59
});
60
61
+ it("never calls a build on the other track up to date", () => {
62
+ // A Stable build whose switch to Nightly did not finish; the updater discards every release.
63
+ const state: DesktopUpdateState = {
64
+ ...baseState,
65
+ status: "up-to-date",
66
+ channel: "nightly",
67
+ currentVersion: "0.1.5",
68
+ checkedAt: "2026-11-18T00:00:00.000Z",
69
+ };
70
+ expect(getDesktopUpdateButtonTooltip(state)).not.toBe("Up to date");
71
+ expect(
72
+ getDesktopUpdateButtonTooltip({ ...state, currentVersion: "0.1.6-nightly.20261118.1" }),
73
+ ).toBe("Up to date");
74
+ });
75
+
76
it("prefers a newly available release over a stale downloaded version", () => {
77
const state: DesktopUpdateState = {
78
...baseState,
apps/web/src/components/desktopUpdate.logic.ts
+15
@@ -1,7 +1,9 @@
1
import type { DesktopUpdateActionResult, DesktopUpdateState } from "@t3tools/contracts";
2
+import { desktopUpdateChannelOf } from "@t3tools/shared/cliRelease";
3
import { msg } from "gt-react";
4
5
import { m, type MessageResolver } from "../i18n/messages";
6
+import { channelSwitchLabel } from "./sidebar/updateEverything.logic";
7
8
export type DesktopUpdateButtonAction = "download" | "install" | "none";
9
@@ -159,6 +161,19 @@ export function getDesktopUpdateButtonTooltip(
161
}
162
return state.message ?? resolve(msg("Update failed"));
163
}
164
+ // The updater discards every release of the other track, so "up to date" would be false here.
165
+ const buildChannel = desktopUpdateChannelOf(state.currentVersion);
166
+ if (state.status === "up-to-date" && buildChannel !== state.channel) {
167
+ return resolve(
168
+ msg(
169
+ "This {build} build ignores {track} releases. Review the update track in Settings to finish the switch.",
170
+ {
171
+ build: channelSwitchLabel(buildChannel, resolve),
172
+ track: channelSwitchLabel(state.channel, resolve),
173
+ },
174
+ ),
175
+ );
176
+ }
177
return resolve(msg("Up to date"));
178
}
179
apps/web/src/i18n/translations/de.json
+1
@@ -2607,6 +2607,7 @@
2607
"d62631cab06d2b80": "Update {version} heruntergeladen. Klicke zum Neustarten und Installieren.",
2608
"52e1d4a487c0cf4b": "Installation von {version} fehlgeschlagen. Klicke, um es erneut zu versuchen.",
2609
"78a04e0e625c0990": "Update fehlgeschlagen",
2610
+ "c24de5eb69373a55": "Dieser {build}-Build ignoriert {track}-Releases. Prüfe den Update-Kanal in den Einstellungen, um den Wechsel abzuschließen.",
2611
"b02ae45a6109c93b": "Auf dem neuesten Stand",
2612
"edcda9e8ee4ccad8": "Update {version} installieren und T3 Code neu starten?\n\nLaufende Aufgaben werden unterbrochen. Stelle sicher, dass du bereit bist, bevor du fortfährst.",
2613
"02eba0f7cc90f759": "Update installieren und T3 Code neu starten?\n\nLaufende Aufgaben werden unterbrochen. Stelle sicher, dass du bereit bist, bevor du fortfährst.",
apps/web/src/i18n/translations/en.json
+1
@@ -2606,6 +2606,7 @@
2606
"d62631cab06d2b80": "Update {version} downloaded. Click to restart and install.",
2607
"52e1d4a487c0cf4b": "Install failed for {version}. Click to retry.",
2608
"78a04e0e625c0990": "Update failed",
2609
+ "c24de5eb69373a55": "This {build} build ignores {track} releases. Review the update track in Settings to finish the switch.",
2610
"b02ae45a6109c93b": "Up to date",
2611
"edcda9e8ee4ccad8": "Install update {version} and restart T3 Code?\n\nAny running tasks will be interrupted. Make sure you're ready before continuing.",
2612
"02eba0f7cc90f759": "Install update and restart T3 Code?\n\nAny running tasks will be interrupted. Make sure you're ready before continuing.",
apps/web/src/i18n/translations/es.json
+1
@@ -2606,6 +2606,7 @@
2606
"d62631cab06d2b80": "Actualización {version} descargada. Haz clic para reiniciar e instalar.",
2607
"52e1d4a487c0cf4b": "Falló la instalación de {version}. Haz clic para reintentarlo.",
2608
"78a04e0e625c0990": "Falló la actualización",
2609
+ "c24de5eb69373a55": "Esta compilación {build} ignora las versiones {track}. Revisa el canal de actualizaciones en Ajustes para terminar el cambio.",
2610
"b02ae45a6109c93b": "Actualizado",
2611
"edcda9e8ee4ccad8": "¿Instalar la actualización {version} y reiniciar T3 Code?\n\nSe interrumpirán las tareas en curso. Asegúrate de estar listo antes de continuar.",
2612
"02eba0f7cc90f759": "¿Instalar la actualización y reiniciar T3 Code?\n\nSe interrumpirán las tareas en curso. Asegúrate de estar listo antes de continuar.",
apps/web/src/i18n/translations/fr.json
+1
@@ -2606,6 +2606,7 @@
2606
"d62631cab06d2b80": "Mise à jour {version} téléchargée. Cliquez pour redémarrer et l’installer.",
2607
"52e1d4a487c0cf4b": "Échec de l’installation de {version}. Cliquez pour réessayer.",
2608
"78a04e0e625c0990": "Échec de la mise à jour",
2609
+ "c24de5eb69373a55": "Cette version {build} ignore les versions {track}. Vérifiez le canal de mise à jour dans les Réglages pour terminer le changement.",
2610
"b02ae45a6109c93b": "À jour",
2611
"edcda9e8ee4ccad8": "Installer la mise à jour {version} et redémarrer T3 Code ?\n\nToutes les tâches en cours seront interrompues. Assurez-vous d’être prêt avant de continuer.",
2612
"02eba0f7cc90f759": "Installer la mise à jour et redémarrer T3 Code ?\n\nToutes les tâches en cours seront interrompues. Assurez-vous d’être prêt avant de continuer.",
apps/web/src/i18n/translations/ja.json
+1
@@ -2604,6 +2604,7 @@
2604
"d62631cab06d2b80": "更新 {version} をダウンロードしました。クリックすると再起動してインストールします。",
2605
"52e1d4a487c0cf4b": "{version} のインストールに失敗しました。クリックして再試行してください。",
2606
"78a04e0e625c0990": "更新に失敗しました",
2607
+ "c24de5eb69373a55": "この {build} ビルドは {track} のリリースを無視します。切り替えを完了するには、設定で更新トラックを確認してください。",
2608
"b02ae45a6109c93b": "最新の状態です",
2609
"edcda9e8ee4ccad8": "更新 {version} をインストールして T3 Code を再起動しますか?\n\n実行中のタスクはすべて中断されます。準備ができていることを確認してから続行してください。",
2610
"02eba0f7cc90f759": "更新をインストールして T3 Code を再起動しますか?\n\n実行中のタスクはすべて中断されます。準備ができていることを確認してから続行してください。",
apps/web/src/i18n/translations/ko.json
+1
@@ -2605,6 +2605,7 @@
2605
"d62631cab06d2b80": "업데이트 {version}이(가) 다운로드되었습니다. 클릭하여 다시 시작하고 설치하세요.",
2606
"52e1d4a487c0cf4b": "{version} 설치에 실패했습니다. 클릭하여 다시 시도하세요.",
2607
"78a04e0e625c0990": "업데이트 실패",
2608
+ "c24de5eb69373a55": "이 {build} 빌드는 {track} 릴리스를 무시합니다. 전환을 완료하려면 설정에서 업데이트 트랙을 확인하세요.",
2609
"b02ae45a6109c93b": "최신 상태",
2610
"edcda9e8ee4ccad8": "업데이트 {version}을(를) 설치하고 T3 Code를 다시 시작할까요?\n\n실행 중인 작업은 모두 중단됩니다. 계속하기 전에 준비가 되었는지 확인하세요.",
2611
"02eba0f7cc90f759": "업데이트를 설치하고 T3 Code를 다시 시작할까요?\n\n실행 중인 작업은 모두 중단됩니다. 계속하기 전에 준비가 되었는지 확인하세요.",
apps/web/src/i18n/translations/pt-BR.json
+1
@@ -2606,6 +2606,7 @@
2606
"d62631cab06d2b80": "Atualização {version} baixada. Clique para reiniciar e instalar.",
2607
"52e1d4a487c0cf4b": "Falha ao instalar {version}. Clique para tentar novamente.",
2608
"78a04e0e625c0990": "Falha na atualização",
2609
+ "c24de5eb69373a55": "Esta build {build} ignora as versões {track}. Revise o canal de atualização em Configurações para concluir a troca.",
2610
"b02ae45a6109c93b": "Atualizado",
2611
"edcda9e8ee4ccad8": "Instalar a atualização {version} e reiniciar o T3 Code?\n\nAs tarefas em execução serão interrompidas. Verifique se está tudo pronto antes de continuar.",
2612
"02eba0f7cc90f759": "Instalar a atualização e reiniciar o T3 Code?\n\nAs tarefas em execução serão interrompidas. Verifique se está tudo pronto antes de continuar.",
apps/web/src/i18n/translations/ru.json
+1
@@ -2606,6 +2606,7 @@
2606
"d62631cab06d2b80": "Обновление {version} скачано. Нажмите, чтобы перезапустить и установить.",
2607
"52e1d4a487c0cf4b": "Не удалось установить {version}. Нажмите, чтобы повторить.",
2608
"78a04e0e625c0990": "Ошибка обновления",
2609
+ "c24de5eb69373a55": "Эта сборка {build} игнорирует выпуски {track}. Проверьте канал обновлений в настройках, чтобы завершить переключение.",
2610
"b02ae45a6109c93b": "Последняя версия",
2611
"edcda9e8ee4ccad8": "Установить обновление {version} и перезапустить T3 Code?\n\nВсе выполняющиеся задачи будут прерваны. Убедитесь, что вы готовы.",
2612
"02eba0f7cc90f759": "Установить обновление и перезапустить T3 Code?\n\nВсе выполняющиеся задачи будут прерваны. Убедитесь, что вы готовы.",
apps/web/src/i18n/translations/sv.json
+1
@@ -2606,6 +2606,7 @@
2606
"d62631cab06d2b80": "Uppdateringen {version} har laddats ned. Klicka för att starta om och installera.",
2607
"52e1d4a487c0cf4b": "Installationen av {version} misslyckades. Klicka för att försöka igen.",
2608
"78a04e0e625c0990": "Uppdateringen misslyckades",
2609
+ "c24de5eb69373a55": "Den här {build}-versionen ignorerar {track}-versioner. Granska uppdateringsspåret i Inställningar för att slutföra bytet.",
2610
"b02ae45a6109c93b": "Uppdaterad",
2611
"edcda9e8ee4ccad8": "Installera uppdateringen {version} och starta om T3 Code?\n\nPågående uppgifter avbryts. Se till att du är redo innan du fortsätter.",
2612
"02eba0f7cc90f759": "Installera uppdateringen och starta om T3 Code?\n\nPågående uppgifter avbryts. Se till att du är redo innan du fortsätter.",
apps/web/src/i18n/translations/zh.json
+1
@@ -2610,6 +2610,7 @@
2610
"d62631cab06d2b80": "更新 {version} 已下载。点击重启并安装。",
2611
"52e1d4a487c0cf4b": "安装 {version} 失败。点击重试。",
2612
"78a04e0e625c0990": "更新失败",
2613
+ "c24de5eb69373a55": "此 {build} 版本会忽略 {track} 版本。请在设置中检查更新通道以完成切换。",
2614
"b02ae45a6109c93b": "已是最新版本",
2615
"edcda9e8ee4ccad8": "安装更新 {version} 并重启 T3 Code?\n\n正在运行的任务会被中断。请确认已准备好再继续。",
2616
"02eba0f7cc90f759": "安装更新并重启 T3 Code?\n\n正在运行的任务会被中断。请确认已准备好再继续。",