-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Open
Labels
opentuiThis relates to changes in v1.0, now that opencode uses opentuiThis relates to changes in v1.0, now that opencode uses opentui
Description
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-previewgemini-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
~/.cache/opencode/models.json- Contains the latest models frommodels.dev, including Gemini 3 ✓models.dev/api.json(live) - Containsgemini-3-flash-preview,gemini-3-pro-preview✓- 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 opentuiThis relates to changes in v1.0, now that opencode uses opentui