You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
v1.17.13: Session title generation fails on OpenRouter with "Reasoning is mandatory for this endpoint" #35366
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.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."
Your issue appears to be a distinct root cause (reasoning mode being forced on a model that rejects it at the endpoint level), but the maintainers may want to track these together.
Activity
github-actions commentedon Jul 4, 2026
This issue might be related to existing issues about session title generation failures. Please check if any of these are the same underlying problem:
Your issue appears to be a distinct root cause (reasoning mode being forced on a model that rejects it at the endpoint level), but the maintainers may want to track these together.