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.
Guard update install while app is quitting
Julius Marminge865d7bd6849d
diff --git a/apps/desktop/src/main.ts b/apps/desktop/src/main.tsindex 22948e23d..be36b10cd 100644--- a/apps/desktop/src/main.ts+++ b/apps/desktop/src/main.ts@@ -641,7 +641,7 @@ async function downloadAvailableUpdate(): Promise<void> {}function installDownloadedUpdate(): void {- if (!updaterConfigured || updateState.status !== "downloaded") return;+ if (isQuitting || !updaterConfigured || updateState.status !== "downloaded") return;isQuitting = true;clearUpdatePollTimer();@@ -1030,6 +1030,7 @@ function registerIpcHandlers(): void {ipcMain.removeHandler(UPDATE_INSTALL_CHANNEL);ipcMain.handle(UPDATE_INSTALL_CHANNEL, async () => {+ if (isQuitting) return;installDownloadedUpdate();});}