opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Google models list outdated in TUI - missing Gemini 3 models

Open movingChurch opened this issue 2 weeks ago • 3 comments

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

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.

movingChurch avatar Jan 03 '26 08:01 movingChurch