diff --git a/apps/web/src/components/LegacySidebar.tsx b/apps/web/src/components/LegacySidebar.tsx index f40dc211c621..dbfa1babd6bf 100644 --- a/apps/web/src/components/LegacySidebar.tsx +++ b/apps/web/src/components/LegacySidebar.tsx @@ -3585,7 +3585,7 @@ export default function LegacySidebar() { let confirmed = false; try { confirmed = await ensureLocalApi().dialogs.confirm( - getDesktopUpdateInstallConfirmationMessage(desktopUpdateState, navigator.platform), + getDesktopUpdateInstallConfirmationMessage(desktopUpdateState), ); } catch (error) { setDesktopUpdateActionPending(false); diff --git a/apps/web/src/components/desktopUpdate.logic.test.ts b/apps/web/src/components/desktopUpdate.logic.test.ts index 8d24b34a4336..c79ed39752b3 100644 --- a/apps/web/src/components/desktopUpdate.logic.test.ts +++ b/apps/web/src/components/desktopUpdate.logic.test.ts @@ -244,30 +244,15 @@ describe("desktop update UI helpers", () => { ).toContain("Install update and restart T3 Code?"); }); - it("warns Windows users that a silent installation can take several minutes", () => { - const message = getDesktopUpdateInstallConfirmationMessage( - { - availableVersion: "1.1.0", - downloadedVersion: "1.1.0", - }, - "Win32", - ); - - expect(message).toContain("may remain closed for several minutes"); - expect(message).toContain("no installer window may appear"); - expect(message).toContain("will reopen automatically"); - }); - - it("keeps the additional silent installation warning Windows-specific", () => { - const message = getDesktopUpdateInstallConfirmationMessage( - { + it("keeps the same install confirmation copy across desktop platforms", () => { + expect( + getDesktopUpdateInstallConfirmationMessage({ availableVersion: "1.1.0", downloadedVersion: "1.1.0", - }, - "MacIntel", + }), + ).toBe( + "Install update 1.1.0 and restart T3 Code?\n\nAny running tasks will be interrupted. Make sure you're ready before continuing.", ); - - expect(message).not.toContain("may remain closed for several minutes"); }); }); diff --git a/apps/web/src/components/desktopUpdate.logic.ts b/apps/web/src/components/desktopUpdate.logic.ts index dc09d7ca8773..25d25cabc2dd 100644 --- a/apps/web/src/components/desktopUpdate.logic.ts +++ b/apps/web/src/components/desktopUpdate.logic.ts @@ -1,5 +1,4 @@ import type { DesktopUpdateActionResult, DesktopUpdateState } from "@t3tools/contracts"; -import { isWindowsPlatform } from "../lib/utils"; export type DesktopUpdateButtonAction = "download" | "install" | "none"; @@ -97,13 +96,9 @@ export function getDesktopUpdateButtonTooltip(state: DesktopUpdateState): string export function getDesktopUpdateInstallConfirmationMessage( state: Pick, - platform = "", ): string { const version = state.downloadedVersion ?? state.availableVersion; - const windowsInstallWarning = isWindowsPlatform(platform) - ? "\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." - : ""; - return `Install update${version ? ` ${version}` : ""} and restart T3 Code?\n\nAny running tasks will be interrupted. Make sure you're ready before continuing.${windowsInstallWarning}`; + return `Install update${version ? ` ${version}` : ""} and restart T3 Code?\n\nAny running tasks will be interrupted. Make sure you're ready before continuing.`; } export function getDesktopUpdateActionError(result: DesktopUpdateActionResult): string | null { diff --git a/apps/web/src/components/settings/SettingsPanels.tsx b/apps/web/src/components/settings/SettingsPanels.tsx index d57a4da1c2f0..a4828f1aedcf 100644 --- a/apps/web/src/components/settings/SettingsPanels.tsx +++ b/apps/web/src/components/settings/SettingsPanels.tsx @@ -284,7 +284,6 @@ function AboutVersionSection() { confirmed = await ensureLocalApi().dialogs.confirm( getDesktopUpdateInstallConfirmationMessage( updateState ?? { availableVersion: null, downloadedVersion: null }, - navigator.platform, ), ); } catch (error) { diff --git a/apps/web/src/components/sidebar/SidebarUpdatePill.tsx b/apps/web/src/components/sidebar/SidebarUpdatePill.tsx index c5cffd8110b5..fa7103aefb7c 100644 --- a/apps/web/src/components/sidebar/SidebarUpdatePill.tsx +++ b/apps/web/src/components/sidebar/SidebarUpdatePill.tsx @@ -222,7 +222,7 @@ function SidebarUpdateControl() { let confirmed = false; try { confirmed = await ensureLocalApi().dialogs.confirm( - getDesktopUpdateInstallConfirmationMessage(state, navigator.platform), + getDesktopUpdateInstallConfirmationMessage(state), ); } catch (error) { setIsActionPending(false);