@devries-cameron20 / t3code-1 / commits / bab4b6f02b
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(web): align Windows update confirmation copy (#7208)

Wout Stiens committed Aug 16, 2026 at 14:55 UTC bab4b6f02b8bdaf15fd32636a97f69ff657cec50
5 files changed +9 -30
apps/web/src/components/LegacySidebar.tsx
+1 -1
@@ -3585,7 +3585,7 @@ export default function LegacySidebar() {
3585 let confirmed = false;
3586 try {
3587 confirmed = await ensureLocalApi().dialogs.confirm(
3588 - getDesktopUpdateInstallConfirmationMessage(desktopUpdateState, navigator.platform),
3588 + getDesktopUpdateInstallConfirmationMessage(desktopUpdateState),
3589 );
3590 } catch (error) {
3591 setDesktopUpdateActionPending(false);
apps/web/src/components/desktopUpdate.logic.test.ts
+6 -21
@@ -244,30 +244,15 @@ describe("desktop update UI helpers", () => {
244 ).toContain("Install update and restart T3 Code?");
245 });
246
247 - it("warns Windows users that a silent installation can take several minutes", () => {
248 - const message = getDesktopUpdateInstallConfirmationMessage(
249 - {
250 - availableVersion: "1.1.0",
251 - downloadedVersion: "1.1.0",
252 - },
253 - "Win32",
254 - );
255 -
256 - expect(message).toContain("may remain closed for several minutes");
257 - expect(message).toContain("no installer window may appear");
258 - expect(message).toContain("will reopen automatically");
259 - });
260 -
261 - it("keeps the additional silent installation warning Windows-specific", () => {
262 - const message = getDesktopUpdateInstallConfirmationMessage(
263 - {
247 + it("keeps the same install confirmation copy across desktop platforms", () => {
248 + expect(
249 + getDesktopUpdateInstallConfirmationMessage({
250 availableVersion: "1.1.0",
251 downloadedVersion: "1.1.0",
266 - },
267 - "MacIntel",
252 + }),
253 + ).toBe(
254 + "Install update 1.1.0 and restart T3 Code?\n\nAny running tasks will be interrupted. Make sure you're ready before continuing.",
255 );
269 -
270 - expect(message).not.toContain("may remain closed for several minutes");
256 });
257 });
258
apps/web/src/components/desktopUpdate.logic.ts
+1 -6
@@ -1,5 +1,4 @@
1 import type { DesktopUpdateActionResult, DesktopUpdateState } from "@t3tools/contracts";
2 -import { isWindowsPlatform } from "../lib/utils";
2
3 export type DesktopUpdateButtonAction = "download" | "install" | "none";
4
@@ -97,13 +96,9 @@ export function getDesktopUpdateButtonTooltip(state: DesktopUpdateState): string
96
97 export function getDesktopUpdateInstallConfirmationMessage(
98 state: Pick<DesktopUpdateState, "availableVersion" | "downloadedVersion">,
100 - platform = "",
99 ): string {
100 const version = state.downloadedVersion ?? state.availableVersion;
103 - const windowsInstallWarning = isWindowsPlatform(platform)
104 - ? "\n\nOn Windows, T3 Code may remain closed for several minutes while the update installs, and no installer window may appear. T3 Code will reopen automatically when installation finishes."
105 - : "";
106 - return `Install update${version ? ` ${version}` : ""} and restart T3 Code?\n\nAny running tasks will be interrupted. Make sure you're ready before continuing.${windowsInstallWarning}`;
101 + return `Install update${version ? ` ${version}` : ""} and restart T3 Code?\n\nAny running tasks will be interrupted. Make sure you're ready before continuing.`;
102 }
103
104 export function getDesktopUpdateActionError(result: DesktopUpdateActionResult): string | null {
apps/web/src/components/settings/SettingsPanels.tsx
-1
@@ -284,7 +284,6 @@ function AboutVersionSection() {
284 confirmed = await ensureLocalApi().dialogs.confirm(
285 getDesktopUpdateInstallConfirmationMessage(
286 updateState ?? { availableVersion: null, downloadedVersion: null },
287 - navigator.platform,
287 ),
288 );
289 } catch (error) {
apps/web/src/components/sidebar/SidebarUpdatePill.tsx
+1 -1
@@ -222,7 +222,7 @@ function SidebarUpdateControl() {
222 let confirmed = false;
223 try {
224 confirmed = await ensureLocalApi().dialogs.confirm(
225 - getDesktopUpdateInstallConfirmationMessage(state, navigator.platform),
225 + getDesktopUpdateInstallConfirmationMessage(state),
226 );
227 } catch (error) {
228 setIsActionPending(false);