Skip to content

Gemini thinking is incorrectly enabled at HIGH level when clamped to off #101785

Description

@aniruddhaadak80

Description

Gemini thinking is incorrectly enabled at HIGH level when clamped to off.

Location

Impact

When clampThinkingLevel() clamps a requested reasoning level to off (due to lack of model support), the adapter evaluates clampedReasoning === 'off' as true and sets the effort to high with enabled: true. This forces thinking to be enabled at HIGH level for models that should have it disabled, leading to unexpected API failures or token overhead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Normal backlog priority with limited blast radius.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.no-staleExclude from stale automation

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions