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
OpenCode Zen GPT-5.2 Codex install model fails (ProviderModelNotFoundError) #8587
Switching workflow to model: gpt-5.2-codex fails: "Model must be in the format provider/model".
Expected: the installer should emit a model string that both passes CLI validation and resolves, or the models endpoint should return provider-prefixed IDs consistent with the CLI.
changed the title [-]Model list shows bare IDs but CLI requires provider/model[/-][+]OpenCode Zen GPT-5.2 Codex install model fails (ProviderModelNotFoundError)[/+]on Jan 15, 2026
I'd like to work on this. The root cause is a race condition: Provider.state() resolves from the bundled snapshot before the background ModelsDev.refresh() completes, so models added to models.dev after the snapshot was built aren't found. Fix tracks the initial refresh promise and awaits it before computing provider state.
Activity
github-actions commentedon Jan 15, 2026
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
justcarlson commentedon Jan 15, 2026
I have Zen set up with an API key in my repo, so it should have recognized the model ID
opencode/gpt-5.2-codex. Odd.[-]Model list shows bare IDs but CLI requires provider/model[/-][+]OpenCode Zen GPT-5.2 Codex install model fails (ProviderModelNotFoundError)[/+]rekram1-node commentedon Jan 15, 2026
Hm that's weird, if I get a chance Ill investigate
thesobercoder commentedon Jan 15, 2026
@rekram1-node Same with Copilot, I have the model enabled, but it just won't work.
Br1an67 commentedon Mar 1, 2026
I'd like to work on this. The root cause is a race condition:
Provider.state()resolves from the bundled snapshot before the backgroundModelsDev.refresh()completes, so models added to models.dev after the snapshot was built aren't found. Fix tracks the initial refresh promise and awaits it before computing provider state.PR: #15609
github-actions commentedon May 1, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.