Description
I am a human!
In v1.17.13, auto-generated session titles silently fail for users whose auto-picked small_model is an OpenRouter reasoning-mandatory model (e.g. openrouter/google/gemini-3.5-flash).
The auto-pick changed in v1.17.12 ("Pick better default small models across providers") and 1.17.13 added "Force reasoning mode for OpenAI-compatible reasoning models". The combination forces reasoning on the title call, which the upstream endpoint rejects with:
AI_APICallError: Reasoning is mandatory for this endpoint and cannot be disabled.
The title agent runs, errors, and the session is left with its default "New session - " title. No user-visible feedback.
- opencode v1.17.13
- Main model: openrouter/minimax/minimax-m3
- Auto-picked small: openrouter/google/gemini-3.5-flash
- Ubuntu 24.04.4 LTS
Plugins
No response
OpenCode version
1.17.13
Steps to reproduce
opencode.json has only model: "openrouter/<some-model>", no small_model set.
- Start a session in v1.17.13.
- Send a prompt.
- Observe: title stays default; in
~/.local/share/opencode/log/opencode.log:
stream providerID=openrouter modelID=google/gemini-3.5-flash
small=true agent=title mode=primary
ERROR "stream error" error.error="AI_APICallError: Reasoning is mandatory
for this endpoint and cannot be disabled."
Screenshot and/or share link
No response
Operating System
Ubuntu 24.04.4 LTS
Terminal
Gnome Terminal
Description
I am a human!
In v1.17.13, auto-generated session titles silently fail for users whose auto-picked
small_modelis an OpenRouter reasoning-mandatory model (e.g.openrouter/google/gemini-3.5-flash).The auto-pick changed in v1.17.12 ("Pick better default small models across providers") and 1.17.13 added "Force reasoning mode for OpenAI-compatible reasoning models". The combination forces reasoning on the title call, which the upstream endpoint rejects with:
AI_APICallError: Reasoning is mandatory for this endpoint and cannot be disabled.
The title agent runs, errors, and the session is left with its default "New session - " title. No user-visible feedback.
Plugins
No response
OpenCode version
1.17.13
Steps to reproduce
opencode.jsonhas onlymodel: "openrouter/<some-model>", nosmall_modelset.~/.local/share/opencode/log/opencode.log:stream providerID=openrouter modelID=google/gemini-3.5-flash
small=true agent=title mode=primary
ERROR "stream error" error.error="AI_APICallError: Reasoning is mandatory
for this endpoint and cannot be disabled."
Screenshot and/or share link
No response
Operating System
Ubuntu 24.04.4 LTS
Terminal
Gnome Terminal