Skip to content

v1.17.13: Session title generation fails on OpenRouter with "Reasoning is mandatory for this endpoint" #35366

Description

@pathbouncer

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

  1. opencode.json has only model: "openrouter/<some-model>", no small_model set.
  2. Start a session in v1.17.13.
  3. Send a prompt.
  4. 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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions