anomalyco / anomalyco/opencode

[Bug]: Desktop: Global config changes (~/.config/opencode/opencode.json) not applied — Desktop persists previous default server

Open
#41,718 1 comment 0 reactions 1 assignee View on GitHub

@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
  1. Edit ~/.config/opencode/opencode.json and change the server URL (e.g., to https://new.example).
  2. Fully quit OpenCode Desktop and relaunch it.
  3. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.