Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

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

Wout Stiensbab4b6f02b8b
diff --git a/apps/web/src/components/LegacySidebar.tsx b/apps/web/src/components/LegacySidebar.tsx
index f40dc211c..dbfa1babd 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 8d24b34a4..c79ed3975 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 dc09d7ca8..25d25cabc 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<DesktopUpdateState, "availableVersion" | "downloadedVersion">,
- 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 d57a4da1c..a4828f1ae 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 c5cffd811..fa7103aef 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);