[PR #7772] fix: respect local config for autoupdate setting #12509

Open
opened 2026-02-16 18:17:25 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/7772

State: open
Merged: No


Why

autoupdate: false in local config gets ignored, only global config path is respected. Regression from opentui #2685 which recreated upgrade.ts with Config.global() instead of Config.get() and fix from #3408 was lost.

Fixes #6984.

How

Changed Config.global() to Config.get() so autoupdate reads from merged config.

Test Plan

Added tests for autoupdate config precedence.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/7772 **State:** open **Merged:** No --- # Why `autoupdate: false` in local config gets ignored, only global config path is respected. Regression from opentui #2685 which recreated `upgrade.ts` with `Config.global()` instead of `Config.get()` and fix from #3408 was lost. Fixes #6984. # How Changed `Config.global()` to `Config.get()` so autoupdate reads from merged config. # Test Plan Added tests for autoupdate config precedence.
yindo added the pull-request label 2026-02-16 18:17:25 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12509