The open source coding agent.
TypeScript
tauri: don't ask to restart separately in updater
Brendan Allan661122bab84b
diff --git a/packages/tauri/src/updater.ts b/packages/tauri/src/updater.tsindex eff93d8cd23..870e534a8f8 100644--- a/packages/tauri/src/updater.ts+++ b/packages/tauri/src/updater.ts@@ -20,7 +20,7 @@ export async function runUpdater(onDownloadEvent?: (progress: DownloadEvent) =>return false}- const shouldUpdate = await ask(`Version ${update.version} of OpenCode is available, would you like to install it?`)+ const shouldUpdate = await ask(`Version ${update.version} of OpenCode has been downloaded, would you like to install it and relaunch?`)if (!shouldUpdate) returntry {@@ -30,8 +30,7 @@ export async function runUpdater(onDownloadEvent?: (progress: DownloadEvent) =>return false}- const shouldRestart = await ask("Update installed successfully, would you like to restart OpenCode?")- if (shouldRestart) await relaunch()+ await relaunch()return true}