Skip to content

feat(app): group free models last in the model picker - #66847

Merged
arvsrn merged 2 commits into
devfrom
free-group
Nov 30, 2026
Merged

arvsrn merged 2 commits into
devfrom
free-group

Conversation

@arvsrn

@arvsrn arvsrn commented Nov 27, 2026

Copy link
Copy Markdown
Member

Issue for this PR

Closes #

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

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.

  • When signed out, the picker shows a single Free section.
  • Enable/Disable all on OpenCode no longer toggles the free models. The Free group has its own.
  • The picker keeps a Console workspace's providers together.

No feature flag: additive UI in the desktop app. English copy only; no existing keys removed.

Known limitations

  • The picker labels the group "Free", while the drawer, Settings and Manage models keep their existing "OpenCode Free" label.
  • Settings → Models has no group menu on the Free section, same as direct providers today.

How did you verify your code works?

bun typecheck and unit tests in packages/app; /review and /rmslop passes; 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

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

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.

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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).

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@arvsrn
arvsrn merged commit 4c8f882 into dev Nov 30, 2026
10 checks passed
@arvsrn
arvsrn deleted the free-group branch November 30, 2026 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant