Repository navigation
feat(app): group free models last in the model picker - #66847
Conversation
Free models leave their provider for a group of their own, listed last, in the model picker, the phone picker drawer, Settings > Models and Manage models. The picker also lists the Console workspace's providers together, as Settings already does. Enable/Disable all on the OpenCode and free groups now toggles only that group's models. No flag.
There was a problem hiding this comment.
I found no blocking problems. I read the diff and ran the unit tests in src/providers/models and src/settings/models (79 pass) and typecheck:tsc for packages/app (clean). I couldn't check the UI visually or run the updated e2e spec, because there's no desktop app or browser in my sandbox, so the before/after screenshots you mentioned will be useful.
The free models are pulled out only for the opencode provider (isFreeModel), so local or custom zero-cost providers stay in their own groups. The Free group keeps the opencode key when there are no paid OpenCode models, so collapse state and Settings' reveal still work. The visibility toggles now keep paid and free models separate, and the drawer's keyboard order matches the rendered order, with Free last.
Public API: unchanged. This is app UI only, plus one new i18n key (dialog.model.group.free).
There was a problem hiding this comment.
The new commit only fixes lint in picker-sections.ts. The rewritten splitFreeModels gives the same result as before. My earlier review left no open points.
picker-sections.test.ts passes and typecheck:tsc is clean for packages/app. I couldn't look at the UI itself, so the before/after screenshots you mentioned are still the visual check.
Public API: unchanged.
Issue for this PR
Closes #
Type of change
What does this PR do?
Free models move out of the OpenCode group into their own group, listed last. This applies to the model picker (also while searching), the phone drawer, Settings → Models and Manage models.
No feature flag: additive UI in the desktop app. English copy only; no existing keys removed.
Known limitations
How did you verify your code works?
bun typecheckand unit tests inpackages/app;/reviewand/rmsloppasses; visual check of every state in the desktop app (opencode-drive against a fake Console) compared with the design stories. The picker, search, signed out, all-free workspace, direct-only, drawer, Settings and Manage models were checked before and after.Screenshots / recordings
Before/after screenshots against the design (light and dark) to follow in a comment.
Checklist