You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
v2: remote config failures discard settings and change the selected model #53666
A failed authenticated remote-config fetch removes previously loaded provider settings and restrictions. If the selected model disappears, the TUI chooses another available model and saves that replacement when Enter is pressed.
Expected: retain valid settings or block model use, and preserve the selected model until the user changes it.
Plugins
Built-in only.
OpenCode version
v2, reproduced at 80c4a6b7 (2.0.24).
Steps to reproduce
Use a local well-known endpoint whose remote config supplies a provider and an enabled_providers allowlist.
Log in and open a session using that provider's model.
Make the remote config endpoint return 503 and trigger a config refresh.
Inspect the provider list and submit a synthetic prompt after the selected model becomes unavailable.
The remote settings disappear, and submission can commit a different model.
Screenshot and/or share link
Before / After. Synthetic terminal fixture captures.
Thanks for the detailed report. I reproduced the config part on v2.0.24:
A local well-known server whose authenticated remote_config defines a provider and enabled_providers: ["example-primary"].
opencode2 auth login http://127.0.0.1:8787. After that, opencode2 models lists only example-primary/example-chat.
I made the remote config endpoint return 503 and triggered a config reload by editing the global opencode.json. The log shows failed to load wellknown config.
opencode2 models now lists the default free opencode/* models instead. The remote provider and the allowlist are both gone, and they only come back once the endpoint returns 200 and the config reloads.
I haven't checked the second half, where the TUI picks a different model and saves it on Enter, but it follows from the provider disappearing.
Activity
github-actions commentedon Oct 7, 2026
This issue might be a duplicate of existing issues. Please check:
opencode-agent commentedon Oct 7, 2026
Thanks for the detailed report. I reproduced the config part on v2.0.24:
remote_configdefines a provider andenabled_providers: ["example-primary"].opencode2 auth login http://127.0.0.1:8787. After that,opencode2 modelslists onlyexample-primary/example-chat.opencode.json. The log showsfailed to load wellknown config.opencode2 modelsnow lists the default freeopencode/*models instead. The remote provider and the allowlist are both gone, and they only come back once the endpoint returns 200 and the config reloads.I haven't checked the second half, where the TUI picks a different model and saves it on Enter, but it follows from the provider disappearing.
fix(core): keep last known remote config when refresh fails
fix(core): keep last known remote config when refresh fails (#53667)