mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-06 00:12:11 +00:00
fix: respect local config for autoupdate settings (#3408)
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
parent
3e574c71cb
commit
883b71ac36
1 changed files with 1 additions and 1 deletions
|
|
@ -157,7 +157,7 @@ export const TuiCommand = cmd({
|
||||||
|
|
||||||
;(async () => {
|
;(async () => {
|
||||||
// if (Installation.isLocal()) return
|
// if (Installation.isLocal()) return
|
||||||
const config = await Config.global()
|
const config = await Config.get()
|
||||||
if (config.autoupdate === false || Flag.OPENCODE_DISABLE_AUTOUPDATE) return
|
if (config.autoupdate === false || Flag.OPENCODE_DISABLE_AUTOUPDATE) return
|
||||||
const latest = await Installation.latest().catch(() => {})
|
const latest = await Installation.latest().catch(() => {})
|
||||||
if (!latest) return
|
if (!latest) return
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue