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
tui: model dialog hides favorite/recent models from their provider group, no setting to disable #64196
In the TUI model dialog, any model that appears under Favorites or Recent is removed from its provider's group while the search box is empty. With a small number of providers this makes it hard to browse a provider's full model list, because its most-used models are the ones that disappear from it. There is no setting to turn this off.
Environment
opencode version: 2.3.0
OS: Windows_NT 10.0.26300 (win32 x64)
Terminal: Unavailable: terminal environment variables are not set
Shell: PowerShell 7 (the report skill snapshot lists cmd.exe)
Install/channel: latest
Active plugins: claude-mem (local)
Reproduction
Connect two providers, for example claude-agent and openai.
Use a model from each so it appears under Recent, or press Ctrl+F on it to favorite it (for example openai/gpt-6.1-sol).
Open the model dialog (/models) and leave the search box empty.
Scroll to the OpenAI group.
Expected Behavior
The provider group lists every available model of that provider. Favorites and Recent are shortcuts at the top and should not remove entries from the full list. Alternatively, a cli.json setting could control this.
Actual Behavior
gpt-6.1-sol is missing from the OpenAI group because it is shown under Favorites or Recent. It reappears only when typing a search query, or after opening the provider-filtered view with Ctrl+A. The same happens to the most used model of every provider.
From the bundled source, the list is built with an exclusion step that only runs when the search text is empty and no provider filter is set. It drops every entry found in the favorites list or the recent list:
.filter((re)=>{if(!Y)returntrue;// Y: empty search and no providerID filterif(F.some(/* is favorite */))returnfalse;if(K.some(/* is recent */))returnfalse;returntrue;})
Additional Context
Always reproducible.
Workarounds: type a query, or press Ctrl+A to open the single-provider view, which shows all models.
cli.json has no option for this. A boolean such as models.dedupe (default true) would solve it.
Thanks for the detailed report and for working out what the code does.
I think this is a duplicate of #60267. In the TUI model dialog, Favorites and Recent models are filtered out of their provider group only while the search box is empty. That is done on purpose, and #60267 tracks the request to change it. A previous TUI report of the same thing (#60855) was closed by a maintainer as a duplicate of #60267.
I'm closing this issue now as a duplicate of #60267. Please add your details there, including your suggestion of a cli.json toggle such as models.dedupe. If you think this is a different problem, reply here and the issue will reopen.
Activity
opencodejr commentedon Nov 16, 2026
Thanks for the detailed report and for working out what the code does.
I think this is a duplicate of #60267. In the TUI model dialog, Favorites and Recent models are filtered out of their provider group only while the search box is empty. That is done on purpose, and #60267 tracks the request to change it. A previous TUI report of the same thing (#60855) was closed by a maintainer as a duplicate of #60267.
Related issues, ordered by likelihood:
/modelsdialog, closed as a duplicate of desktop: a provider disappears from /models once all its models are in Recent / 桌面版:某 provider 的模型全部进入「最近使用」后,该分组从 /models 中消失 #60267.I'm closing this issue now as a duplicate of #60267. Please add your details there, including your suggestion of a
cli.jsontoggle such asmodels.dedupe. If you think this is a different problem, reply here and the issue will reopen.