Repository navigation
Description
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. Gemini 3.x had finer families (gemini-pro, gemini-flash). 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, becausematchComposerModelItemsskips legacy models (apps/web/src/components/chat/composerModelMentions.ts:19-20). There's no way to mention it.
No settings workaround: a custom model with the same slug is skipped (snapshotProbe.ts:204), so the flag stays.
Steps to reproduce
- Enable the OpenCode provider (OpenCode 2.3.0) with the OpenCode Zen (
opencode) catalog connected. - Open the model picker → OpenCode tab. Gemini 4 Carbon and Muse Wonder are only listed after clicking "Show more", alongside the legacy models.
- In the composer, type
@Carbon(or@Gemini). No OpenCode Gemini 4 Carbon suggestion appears. - Optional check:
opencode api model.listshowsgemini-4-argon,gemini-4-carbonandgemini-4-hydrogenall with"family": "gemini", and Hydrogen has the latesttime.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: gemini-4-carbon and muse-wonder-1.0 carry "isLegacy": true; gemini-4-hydrogen and muse-ember-1.0 do not.Related issues
#27573 (iOS picker search hides legacy models) is a downstream symptom that assumes the legacy classification is correct. This issue is about the classification itself.
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
Activity
familymark each other legacy (Gemini 4 Carbon hidden by Gemini 4 Hydrogen) #37247 as a duplicate of this issuetest(opencode): one family holding several model lines marks only the…