t3code icon indicating copy to clipboard operation
t3code copied to clipboard

OpenCode models from different classes in one `family` mark each other legacy (Gemini 4 Carbon hidden by Gemini 4 Hydrogen)

Open kestereverts opened this issue 2 weeks ago • 2 comments

What happened

I tried to reference Gemini 4 Carbon with @ in the composer, but it never shows up in the suggestions, even though the OpenCode provider offers it and I can select it in the model picker. In the picker it sits behind "Show more" with the legacy models. It isn't legacy: Google released Gemini 4 Argon and then Gemini 4 Carbon in the same model class, so Carbon is the newest of that class. Gemini 4 Hydrogen came out later, but it's a different, smaller class. Carbon and Hydrogen should both be current, and only Argon should be legacy.

Diagnosis

markOpenCodeLegacy (packages/provider-opencode/src/server/status.ts, around lines 296-316 on main @ 0de6ddb) groups OpenCode models by ${providerID}/${family}. Within each group it treats every release older than the newest as superseded and sets isLegacy: true.

OpenCode 2.3.0's model.list, the call openCode2Catalog.ts makes, gives the same family to every Gemini 4 model, whatever its size class:

Model family time.released T3 result Expected
opencode/gemini-4-argon gemini 2026-10-13 legacy legacy
opencode/gemini-4-carbon gemini 2026-11-10 legacy current
opencode/gemini-4-hydrogen gemini 2026-11-12 current current

So Hydrogen, released two days after Carbon, supersedes it even though they're different classes. The Muse models show the same pattern: Spark, Wonder and Ember are all family: "muse", so Muse Wonder (2026-10-12) is marked legacy because Muse Ember (2026-11-09) is newer. Older Gemini generations didn't hit this because OpenCode gave them finer families (gemini-pro, gemini-flash, gemini-flash-lite). The heuristic only works when family identifies a single release line, and the OpenCode catalog no longer guarantees that.

Visible effects of a wrong isLegacy:

  • Model picker: the model is hidden behind "Show more".
  • Composer @ mentions: the model is never offered, because matchComposerModelItems skips legacy models (apps/web/src/components/chat/composerModelMentions.ts:19-20). There's no way to mention it.

There's no settings workaround. Adding the slug as a custom model doesn't help, because providerModelsFromSettings skips custom entries whose slug matches a catalog model (packages/provider-core/src/server/snapshotProbe.ts:204), so the legacy flag stays.

Steps to reproduce

  1. Enable the OpenCode provider (OpenCode 2.3.0) with the OpenCode Zen (opencode) catalog connected.
  2. Open the model picker → OpenCode tab. Gemini 4 Carbon and Muse Wonder are only listed after clicking "Show more", alongside the legacy models.
  3. In the composer, type @Carbon (or @Gemini). No OpenCode Gemini 4 Carbon suggestion appears.
  4. Optional check: opencode api model.list shows gemini-4-argon, gemini-4-carbon and gemini-4-hydrogen all with "family": "gemini", and Hydrogen has the latest time.released.

Version

0.1.10-nightly.20261115.4736 (local server). The t3 triage CLI was 0.1.9.

Environment

macOS (Darwin 27.2.0, arm64), Node v26.12.1, OpenCode 2.3.0, desktop app connected to a local server

Evidence

# opencode api model.list (filtered to providerID=opencode, gemini-4 / muse)
opencode/gemini-4-argon      family=gemini  released=2026-10-13  status=active
opencode/gemini-4-carbon     family=gemini  released=2026-11-10  status=active
opencode/gemini-4-hydrogen   family=gemini  released=2026-11-12  status=active
opencode/muse-spark-1.3      family=muse    released=2026-09-02  status=active
opencode/muse-wonder-1.0     family=muse    released=2026-10-12  status=active
opencode/muse-ember-1.0      family=muse    released=2026-11-09  status=active

# T3 provider status cache (caches/opencode.json), models entries
{"slug": "opencode/gemini-4-carbon", "name": "Gemini 4 Carbon", "subProvider": "Personal / OpenCode", ..., "isLegacy": true}
{"slug": "opencode/muse-wonder-1.0", "name": "Muse Wonder", "subProvider": "Personal / OpenCode", ..., "isLegacy": true}
# gemini-4-hydrogen and muse-ember-1.0 have no isLegacy

Related issues

#27573 (mobile picker search can't find legacy models) is a similar downstream symptom of legacy filtering, but it's about the iOS picker and assumes the legacy classification is correct. This issue is about the classification itself being wrong for OpenCode.

Fix applied or workaround

Nothing was changed on the machine. Workaround: select Gemini 4 Carbon from the model picker (OpenCode → Show more). @ mentions still can't reach it.

Filed by

Claude Code (claude-opus-5-5) via t3 triage

kestereverts avatar Nov 15 '26 14:11 kestereverts

Closing: refiling through the triage form so the report carries the via-triage label. A link to the new issue will follow.

kestereverts avatar Nov 15 '26 15:11 kestereverts

Refiled as #37249.

kestereverts avatar Nov 15 '26 15:11 kestereverts