Skip to content

Web/Desktop model picker permanently hides catalog models that lack a family field (e.g. opencode-go/omen-alpha) #47557

Closed as not planned

Description

@HWZen

Description

Catalog models that lack a family field are permanently hidden from the web UI / Desktop model picker, while the TUI and the server API still return them.

Concretely: opencode-go/omen-alpha (released 2026-09-04) is the only model of its provider without a family key in the catalog. It never shows up in the model picker of the web UI or the Desktop app, even though GET /config/providers and /api/model both include it, and the TUI lists it.

Root cause in packages/app/src/context/models.tsx:

  • latest() groups models with remeda groupBy((x) => x.family) and keeps only the newest model per group.
  • remeda's groupBy drops items whose mapper returns undefined (verified against current remeda: pipe([{ family: undefined }], groupBy((x) => x.family)) → {}), so a family-less model lands in no group and never enters latestSet.
  • visible() then hides it: its release_date is valid, so the !date?.isValid → show fallback doesn't apply either.
  • The picker list is built from visible()-filtered items, so there is also no way to manually re-show the model.

Suggested fix: groupBy((x) => x.family ?? "_none"), or treat family-less models like date-less ones in visible().

Workaround (confirmed working): give the model a family via config override:

{
  "provider": {
    "opencode-go": {
      "models": {
        "omen-alpha": { "family": "omen" }
      }
    }
  }
}

After restarting, the picker shows the model (tagged as latest).

Related: #45934 (same file, but a different filter branch — the 6-month release window), #28484 (feature request to surface this visibility filter).

OpenCode version

1.18.11 (CLI/web) and 1.18.29 (Desktop) — packages/app/src/context/models.tsx is identical in both tags.

Steps to reproduce

  1. Have a connected provider whose catalog entry lacks family (e.g. opencode-go/omen-alpha).
  2. Open the web UI model picker (or Desktop): the model is absent from its provider section.
  3. GET /config/providers on the same server: the model is present.
  4. Apply the config override above and restart: the model appears.

Operating system

Windows 11

Activity

  1. thdxr commented on Oct 11, 2026

    @thdxr
    Member

    Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.

    — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions