Skip to content

tui: model dialog hides favorite/recent models from their provider group, no setting to disable #64196

Closed as duplicate

Description

@nolan129

Summary

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

  1. Connect two providers, for example claude-agent and openai.
  2. 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).
  3. Open the model dialog (/models) and leave the search box empty.
  4. 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) return true;                       // Y: empty search and no providerID filter
  if (F.some(/* is favorite */)) return false;
  if (K.some(/* is recent   */)) return false;
  return true;
})

Additional Context

Activity

  1. opencodejr commented on Nov 16, 2026

    @opencodejr
    Contributor

    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:

    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.

  2. added
    area/tui
    type/feature
    version/v2
    on Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/tuiplatform/windowstype/featureversion/v2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions