add autoupdate: notify

This commit is contained in:
Aiden Cline
2025-11-24 14:32:38 -06:00
parent ccde319937
commit a9a2c23736
4 changed files with 13 additions and 3 deletions

View File

@@ -10,6 +10,9 @@ export async function upgrade() {
if (Installation.VERSION === latest) return
if (config.autoupdate === false || Flag.OPENCODE_DISABLE_AUTOUPDATE) {
return
}
if (config.autoupdate === "notify") {
await Bus.publish(Installation.Event.UpdateAvailable, { version: latest })
return
}