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
Commit c27d7a8
Browse filesBrowse the repository at this point in the historyBrowse files
fix(provider-opencode): tell OpenCode Zen and Go models apart
One OpenCode instance fronts several providers whose catalogues overlap, and
Step 5 Preview Free is listed by both OpenCode Zen and OpenCode Go. The 2.x
status check dropped the provider name when it built the snapshot's model
list, so every model reaches the composer with the instance's own display
name and nothing beside it. Two rows for the same model from two different
subscriptions then read the same, and a user cannot tell which one a turn
bills (#17100).
The status check now reads the server's provider list in the same connection
as its model list and labels each model with the provider that listed it.
Clients already render that label: web and desktop show it under the model
name, mobile shows it as the row's subtitle, and the picker's search matches
it.
- A provider the server calls plain "OpenCode" gets no label, because that
would repeat the instance name the row already shows.
- The provider id stands in until the server names its providers, which it
does lazily with the rest of its catalog. Because the id on its own says
little, the row then reads "OpenCode · opencode-go" rather than
"opencode-go".
- A sub-provider whose name already carries the provider it runs under
("OpenCode Zen" under "OpenCode") reads on its own, so a row shows
"OpenCode Zen" instead of "OpenCode · OpenCode Zen". That is how OpenCode's
own picker lists them, and mobile already rendered it that way.
- A server that cannot name its providers still lists its models, so a failed
provider read degrades to those ids instead of failing the status check.
0 commit comments