Pre-flight Checklist
📝 Bug Description
Description
When configuring models via the TUI (Configure Models → Configure Opencode Models),
gentle-ai saves model IDs with the prefix "opencode/" instead of "openrouter/".
🔄 Steps to Reproduce
-
Steps to reproduce
- Run gentle-ai
- Go to Configure Models → Configure Opencode Models
- Assign a model from OpenRouter (e.g. Qwen3.6 Plus Free) to all SDD phases
- Open opencode.json and check the model field
✅ Expected Behavior
Expected
"model": "openrouter/qwen/qwen3.6-plus:free"
❌ Actual Behavior
Actual
"model": "opencode/qwen3.6-plus-free"
Gentle AI Version
gga v2.8.1
Operating System
macOS
AI Agent / Client
OpenCode
📋 Affected Area
Agent Detection
💡 Logs / Error Output
## Result
OpenCode CLI rejects the model:
"Agent gentleman's configured model opencode/qwen3.6-plus-free is not valid"
and falls back to a default model (MiniMax 2.5 free).
Additional Context
Workaround
Manually edit opencode.json replacing opencode/ with the correct openrouter/ prefix and slug.
Environment
- gentle-ai: 1.18.3
- OpenCode: 1.4.0
- macOS (Mac Mini M4)
Additional finding
The model list shown in gentle-ai's TUI is not synchronized with the models
that OpenCode actually supports at runtime.
Example:
- "Qwen3.6 Plus Free" appears under "OpenCode Zen" in gentle-ai
- But OpenCode CLI rejects it as invalid
- The same model exists and works under OpenRouter: openrouter/qwen/qwen3.6-plus:free
This means the issue has two layers:
- Wrong prefix written to opencode.json (opencode/ instead of openrouter/)
- Stale/mismatched model catalog in gentle-ai's TUI vs OpenCode's actual available models
Pre-flight Checklist
status:approved📝 Bug Description
Description
When configuring models via the TUI (Configure Models → Configure Opencode Models),
gentle-ai saves model IDs with the prefix "opencode/" instead of "openrouter/".
🔄 Steps to Reproduce
Steps to reproduce
✅ Expected Behavior
Expected
"model": "openrouter/qwen/qwen3.6-plus:free"
❌ Actual Behavior
Actual
"model": "opencode/qwen3.6-plus-free"
Gentle AI Version
gga v2.8.1
Operating System
macOS
AI Agent / Client
OpenCode
📋 Affected Area
Agent Detection
💡 Logs / Error Output
Additional Context
Workaround
Manually edit opencode.json replacing opencode/ with the correct openrouter/ prefix and slug.
Environment
Additional finding
The model list shown in gentle-ai's TUI is not synchronized with the models
that OpenCode actually supports at runtime.
Example:
This means the issue has two layers: