Skip to content

The open source coding agent.

TypeScript

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

Andrew Pashynnyk883b71ac36dc
diff --git a/packages/opencode/src/cli/cmd/tui.ts b/packages/opencode/src/cli/cmd/tui.ts
index 427260ba45e..b936f54e4ef 100644
--- a/packages/opencode/src/cli/cmd/tui.ts
+++ b/packages/opencode/src/cli/cmd/tui.ts
@@ -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