anomalyco / anomalyco/opencode
[Bug]: Desktop: Global config changes (~/.config/opencode/opencode.json) not applied — Desktop persists previous default server
Open
@Hona is already working on this.
Since Aug 11, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- Avg merge
- 7h 2m
- Merged PRs (30d)
- 384
Description
Description
Summary
On macOS, updating the global config file (~/.config/opencode/opencode.json or .jsonc) to change the server URL does not take effect in OpenCode Desktop after restarting the app. The Desktop app might continues to use a previously selected default server URL that appears to be persisted in the app's electron-store.
Observed behavior
- Desktop uses the value persisted in electron-store maybe rather than the value in ~/.config/opencode/opencode.json.
Expected behavior
- Desktop should apply the global config change on startup (unless the user intentionally overrode the server via the Desktop UI), or at minimum provide clear UI and documentation indicating that Desktop persists a default server and that the user must clear/reset that stored value to have the global config take effect.
Plugins
No response
OpenCode version
1.18.16
Steps to reproduce
- Edit ~/.config/opencode/opencode.json and change the server URL (e.g., to https://new.example).
- Fully quit OpenCode Desktop and relaunch it.
- Observe that Desktop still connects to or prompts the old server URL instead of the new one.
Screenshot and/or share link
No response
Operating System
MacOS 15.7
Terminal
zsh
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.