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(desktop): show dialog after "Check for Updates" menu action (#955)

dpav02dfd62cfb8689
diff --git a/apps/desktop/src/main.ts b/apps/desktop/src/main.ts
index 1631046a6..460684929 100644
--- a/apps/desktop/src/main.ts
+++ b/apps/desktop/src/main.ts
@@ -535,7 +535,28 @@ function handleCheckForUpdatesMenuClick(): void {
if (!BrowserWindow.getAllWindows().length) {
mainWindow = createWindow();
}
- void checkForUpdates("menu");
+ void checkForUpdatesFromMenu();
+}
+
+async function checkForUpdatesFromMenu(): Promise<void> {
+ await checkForUpdates("menu");
+
+ if (updateState.status === "up-to-date") {
+ void dialog.showMessageBox({
+ type: "info",
+ title: "You're up to date!",
+ message: `T3 Code ${updateState.currentVersion} is currently the newest version available.`,
+ buttons: ["OK"],
+ });
+ } else if (updateState.status === "error") {
+ void dialog.showMessageBox({
+ type: "warning",
+ title: "Update check failed",
+ message: "Could not check for updates.",
+ detail: updateState.message ?? "An unknown error occurred. Please try again later.",
+ buttons: ["OK"],
+ });
+ }
}
function configureApplicationMenu(): void {