fix(llm): prevent Gemini thinking from being enabled when clamped to off#101992
fix(llm): prevent Gemini thinking from being enabled when clamped to off#101992aniruddhaadak80 wants to merge 1 commit into
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 8, 2026, 12:12 AM ET / 04:12 UTC. Summary PR surface: Source +3. Total +3 across 1 file. Reproducibility: yes. Source inspection shows a Google simple request can receive a clamped Review metrics: 1 noteworthy metric.
Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Keep the narrow clamp guard, add or cite focused Google and Vertex regression coverage plus real run proof, and drop the stale internal export changes so current main's provider boundary stays narrow. Do we have a high-confidence way to reproduce the issue? Yes. Source inspection shows a Google simple request can receive a clamped Is this the best way to solve the issue? Yes for the central behavior. The guard immediately after clamping is the narrow maintainable fix, but the stale private-export changes are unrelated and should be removed before merge. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 827f2c44225e. Label changesLabel justifications:
Evidence reviewedPR surface: Source +3. Total +3 across 1 file. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
aceec84 to
da69a18
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
Closing as the weaker partial duplicate of #101832. #101832 covers both the helper and final Gemini sanitizer paths with regression tests. This PR changes only the helper path, has no focused tests, and carries stale declaration/export drift. The canonical work remains open for dedicated provider-owner review because it changes Gemini request policy. |
Description
This PR resolves an issue where Gemini thinking is incorrectly enabled at the
HIGHlevel even when clamped tooff(due to the target model not supporting thinking).Changes
clampedReasoningis"off"inbuildGoogleSimpleThinkingand return{ enabled: false }early.Behavior Proof / Live Verification
Verified using a simple stream test calling a non-reasoning Google model (e.g.,
gemini-1.5-flash) with thinking configured:Fixes #101785