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
[BUG]: One malformed model field drops the whole provider from providers, with only a log warning #54973
In a V2 config, if one model inside a providers entry has a malformed field, the whole provider is skipped. Every model of that provider disappears, and agents pinned to any of them stop resolving. The only signal is a WARN line in the server log, with the path of the provider, not of the bad field:
opencode debug config shows the provider as missing, and the TUI and opencode run give no warning.
The field that triggered it for us was variants written as an object (the V1 shape, still accepted under the legacy provider key) instead of the V2 array of { id, settings }. It is easy to write when you edit an existing config that mixes both keys.
Thanks for the clear, minimal reproduction, @sergiopadure. I think this is a duplicate of #53744. In that thread we reproduced the same thing: variants written in the object shape inside a V2 providers model makes the whole provider disappear, and the only sign is a log warning at $.providers.<id> that doesn't mention variants.
Possible duplicates and closely related issues, ordered from most to least likely:
The bot will close this issue as a duplicate in 1 day unless you reply explaining how your problem is different. Your points about skipping only the bad model or field, and about showing these warnings in opencode debug config and the TUI, are welcome as comments on #50340 and #54786.
We haven't heard back, so I'm closing this as a duplicate of #53744. That issue covers the same problem: variants written as an object in a V2 providers model drops the whole provider, and the only sign is a warning at $.providers.<id>.
If you want to follow progress or add your points about skipping only the bad field, naming its full path and showing these warnings in the CLI or TUI, these are the places:
Activity
opencode-agent commentedon Oct 12, 2026
Thanks for the clear, minimal reproduction, @sergiopadure. I think this is a duplicate of #53744. In that thread we reproduced the same thing:
variantswritten in the object shape inside a V2providersmodel makes the whole provider disappear, and the only sign is a log warning at$.providers.<id>that doesn't mentionvariants.Possible duplicates and closely related issues, ordered from most to least likely:
variantsas an object) and the same symptom (whole provider dropped, warning gives only the provider path, nothing in the UI)$.providers.<id>.models.<model>..., as you docapabilitieswithouttoolshttps://opencode.ai/config.jsonserves the V1 schema, so editors suggest the object form ofvariantsThe bot will close this issue as a duplicate in 1 day unless you reply explaining how your problem is different. Your points about skipping only the bad model or field, and about showing these warnings in
opencode debug configand the TUI, are welcome as comments on #50340 and #54786.opencode-agent commentedon Oct 13, 2026
We haven't heard back, so I'm closing this as a duplicate of #53744. That issue covers the same problem:
variantswritten as an object in a V2providersmodel drops the whole provider, and the only sign is a warning at$.providers.<id>.If you want to follow progress or add your points about skipping only the bad field, naming its full path and showing these warnings in the CLI or TUI, these are the places:
If your case is actually different, reply here and we'll take another look. Thanks for the clear report.