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

Open
opened 2026-02-16 17:42:42 -05:00 by yindo · 3 comments
Owner

Originally created by @movingChurch on GitHub (Jan 3, 2026).

Originally assigned to: @rekram1-node on GitHub.

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.

Originally created by @movingChurch on GitHub (Jan 3, 2026). Originally assigned to: @rekram1-node on GitHub. ## 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.
yindo added the opentui label 2026-02-16 17:42:42 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 3, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #6454: [BUG]: Google Auth Gemini 3 models return 404 "Requested entity was not found" error - Related to Gemini 3 model availability/access issues
  • #4734: [FEATURE]: Refresh models manually - Related to the need for runtime model list updates instead of hardcoded data at build time
  • #6169: /model TUI picker does not display all custom provider models - Related to models not appearing in TUI picker UI despite being available

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 3, 2026): This issue might be a duplicate of existing issues. Please check: - #6454: [BUG]: Google Auth Gemini 3 models return 404 "Requested entity was not found" error - Related to Gemini 3 model availability/access issues - #4734: [FEATURE]: Refresh models manually - Related to the need for runtime model list updates instead of hardcoded data at build time - #6169: /model TUI picker does not display all custom provider models - Related to models not appearing in TUI picker UI despite being available Feel free to ignore if none of these address your specific case.
Author
Owner

@itsrainingmani commented on GitHub (Jan 3, 2026):

I just checked my model list after authenticating with the plugin and I can see both gemini 3 pro preview and gemini 3 flash preview.

Image

Could you try clearing the plugin cache and trying again?

@itsrainingmani commented on GitHub (Jan 3, 2026): I just checked my model list after authenticating with the plugin and I can see both gemini 3 pro preview and gemini 3 flash preview. <img width="454" height="237" alt="Image" src="https://github.com/user-attachments/assets/b00fe0fe-0955-48c3-affa-b02ee6c05b56" /> Could you try clearing the plugin cache and trying again?
Author
Owner

@cravenceiling commented on GitHub (Jan 3, 2026):

You can run

opencode models --refresh
@cravenceiling commented on GitHub (Jan 3, 2026): You can run ```bash opencode models --refresh ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4123