Skip to content

fix: disable Gemini thinking when reasoning clamps off#101957

Closed
arkyu2077 wants to merge 1 commit into
openclaw:mainfrom
arkyu2077:fix-101785-gemini-thinking-off-clamp
Closed

fix: disable Gemini thinking when reasoning clamps off#101957
arkyu2077 wants to merge 1 commit into
openclaw:mainfrom
arkyu2077:fix-101785-gemini-thinking-off-clamp

Conversation

@arkyu2077

Copy link
Copy Markdown
Contributor

Summary

  • return { enabled: false } when Google reasoning is clamped to off
  • stop remapping off to high thinking
  • add a regression test covering non-reasoning Google models

Fixes #101785

Validation

  • pnpm -C ~/clawd/pr-worktrees/issue-101785-gemini-thinking-off-clamp exec tsx -e "import { buildGoogleSimpleThinking } from './packages/ai/src/providers/google-shared.ts'; const model={id:'gemini-flash-lite',name:'Gemini Flash Lite',api:'google-generative-ai',provider:'google',baseUrl:'',reasoning:false,input:['text'],cost:{input:1,output:1,cacheRead:0,cacheWrite:0},contextWindow:128000,maxTokens:8192}; const result=buildGoogleSimpleThinking(model,{reasoning:'high'}); if (JSON.stringify(result)!==JSON.stringify({enabled:false})) throw new Error('unexpected '+JSON.stringify(result)); console.log(result);"

@openclaw-barnacle openclaw-barnacle Bot added size: XS r: too-many-prs Auto-close: author has more than twenty active PRs. labels Jul 8, 2026
@openclaw-barnacle

Copy link
Copy Markdown

Closing this PR because the author has more than 20 active PRs in this repo. Please reduce the active PR queue and reopen or resubmit once it is back under the limit. You can close your own PRs to get back under the limit.

@openclaw-barnacle openclaw-barnacle Bot added the triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. label Jul 8, 2026
@openclaw-barnacle openclaw-barnacle Bot closed this Jul 8, 2026
@openclaw-barnacle

Copy link
Copy Markdown

Closing this PR because the author has more than 20 active PRs in this repo. Please reduce the active PR queue and reopen or resubmit once it is back under the limit. You can close your own PRs to get back under the limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

r: too-many-prs Auto-close: author has more than twenty active PRs. size: XS triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant