fix: respect local config for autoupdate settings (#3408)

Co-authored-by: Claude <noreply@anthropic.com>
pull/3416/head
Andrew Pashynnyk 2025-10-24 17:50:09 +03:00 committed by GitHub
parent 3e574c71cb
commit 883b71ac36
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ export const TuiCommand = cmd({
;(async () => {
// if (Installation.isLocal()) return
const config = await Config.global()
const config = await Config.get()
if (config.autoupdate === false || Flag.OPENCODE_DISABLE_AUTOUPDATE) return
const latest = await Installation.latest().catch(() => {})
if (!latest) return