Skip to content

Google models list outdated in TUI - missing Gemini 3 models #6743

@movingChurch

Description

@movingChurch

Problem

The TUI model selector shows an outdated Google models list. Newer models like gemini-3-flash-preview and gemini-3-pro-preview are missing.

Environment

  • OpenCode version: 1.0.223
  • OS: macOS
  • Plugin: opencode-gemini-auth@1.3.6

Expected Behavior

TUI should display all available Google models from models.dev, including:

  • gemini-3-flash-preview
  • gemini-3-pro-preview

Actual Behavior

TUI only shows older models (up to Gemini 2.5 variants with date suffixes like 05-06, 06-17).

Investigation

  1. ~/.cache/opencode/models.json - Contains the latest models from models.dev, including Gemini 3 ✓
  2. models.dev/api.json (live) - Contains gemini-3-flash-preview, gemini-3-pro-preview
  3. TUI model list - Missing Gemini 3 models ✗

It appears the models.dev JSON data is hardcoded into the binary at build time rather than being fetched/cached at runtime. The TUI does not seem to use the ~/.cache/opencode/models.json cache file.

Screenshots

TUI showing outdated model list (no Gemini 3):

Google
Gemini 1.5 Flash
Gemini 1.5 Flash-8B
Gemini 1.5 Pro
Gemini 2.0 Flash
Gemini 2.0 Flash Lite
Gemini 2.5 Flash
Gemini 2.5 Flash Image
...
Gemini 2.5 Pro Preview 06-05
(no Gemini 3 models)

Suggested Fix

Consider fetching/refreshing the models list from models.dev at runtime instead of bundling it at build time, or update the bundled data more frequently.

Metadata

Metadata

Assignees

Labels

opentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions