GeezerVison is showing github.com — [bug] v2.0.27 title agent ignores agents.title.model (and removed small_model), uses hardcoded gpt-5.4-nano · Issue #54692 · anomalyco/opencode
[bug] v2.0.27 title agent ignores agents.title.model (and removed small_model), uses hardcoded gpt-5.4-nano #54692DescriptionSummary
On OpenCode v2.0.27, interactive session title generation (agent=title, small=true) always uses opencode/gpt-5.4-nano (the provider-default small model), ignoring both the v2-native override agents.title.model and the legacy small_model. When that model is unavailable (here: Insufficient account funds), sessions stay stuck at New session - <timestamp> with no fallback.
Environment
- OpenCode v2.0.27 (server, fresh restart after upgrade from 2.0.23 — same behavior on both)
- Provider: opencode (OpenCode Console), main model
opencode/muse-spark-1.3-contributor-free
Config (~/.config/opencode/opencode.json)
{
"small_model": "opencode/mimo-v2.6-flash-free",
"agent": {
"title": { "model": "opencode/mimo-v2.6-flash-free" }
}
}
opencode debug config resolves this to agents.title.model = {providerID: opencode, model: mimo-v2.6-flash-free}, but small_model resolves to None (dropped).
Log evidence (after restart on 2.0.27, config above active)
stream providerID=opencode modelID=gpt-5.4-nano session.id=ses_ed196b45dffeCizCO4H4bEuvSP small=true agent=title mode=primary
stream error ... AI_APICallError: Upstream request failed: Insufficient account funds
Session remains New session - 2026-10-12T04:40:15.010Z. Same failure observed on 3 separate sessions across 2.0.23 and 2.0.27.
Expected (per v2 migration docs)
Per opencode.ai/v2/docs/migrate-v1: 'small_model becomes the model selection for the built-in title agent. Native V2 configuration should use agents.title.model instead.' So the title agent should use mimo-v2.6-flash-free here.
Related
Activityopencode-agent commented on Oct 12, 2026 Thanks for the detailed report. I couldn't reproduce this on v2.0.27.
I pointed OpenCode at a test provider that logs which model each request uses. The provider offered a main model, a title model and gpt-5.4-nano. Then I sent a message with each of these configs:
"small_model": "fake/title-model"
"agent": { "title": { "model": "fake/title-model" } }
"agents": { "title": { "model": { "providerID": "fake", "model": "title-model" } } }
Each time, the title request used title-model. When I pointed the title agent at a model that doesn't exist, the title was generated with the session's main model instead (that silent fallback is #51159). It never used the provider's default small model.
One thing stood out: the log line in your report (stream providerID=opencode modelID=gpt-5.4-nano ... small=true agent=title mode=primary) doesn't match anything v2.0.27 logs. v2 logs look like timestamp=... level=INFO message=.... Your line looks like v1 (opencode-ai 1.x) output, so the server handling your sessions may be an older install rather than 2.0.27. Could you check:
- Which process is serving your sessions? For example, run
opencode service to see the background service, check ps aux | grep opencode, and run which -a opencode. An older opencode-ai install or a long-running opencode serve could still be handling requests.
- Does it still happen with
opencode --standalone --print-logs --log-level debug (--print-logs shows server logs only in standalone mode)? If it does, please paste the lines around the title request.
Related issues, ordered by how likely they are to matter here:
opencode-agent commented on Oct 15, 2026 I'm closing this for now since we haven't heard back. On v2.0.27 I couldn't reproduce it. The title agent used the configured model whether it was set with small_model, agent.title.model or agents.title.model. When that model couldn't be used, the title fell back to the session's main model, not gpt-5.4-nano. The log line in the report looks like it came from a v1 (opencode-ai 1.x) process, so an older server may still be handling your sessions.
If it still happens on v2, please reply here or open a new issue. Include which process is serving your sessions (opencode service, which -a opencode) and the log lines around the title request from opencode --standalone --print-logs --log-level debug, and we'll take another look. Thanks for the detailed report!
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|