#13006: fix(provider): disable reasoning tags for gemini-3-pro variants to fix tool calls
stale
Cluster:
Gemini Provider Enhancements
fix:
[Historical context: a different model called tool "read" with arguments: {
"file_path"
https://github.com/openclaw/openclaw/issues/3344
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
This PR updates `isReasoningTagProvider` to return `false` for `google-antigravity` provider strings that include `gemini-3-pro` or `gemini-3-pro-low`, effectively disabling `<think>/<final>` reasoning-tag prompting for those Gemini variants to avoid malformed tool calls.
The change affects downstream behavior wherever `isReasoningTagProvider()` is used to decide whether to enforce a final tag or to include reasoning-tag hints in the system prompt (e.g., reply runner and embedded runner code paths).
<h3>Confidence Score: 4/5</h3>
- This PR is mostly safe to merge, with a small but real documentation/comment issue to fix.
- The functional change is narrowly scoped to a specific provider/model substring and is wired through existing helper usage. The main concrete issue is the placeholder issue URL (`issues/XXXXX`) in the code comment, which should be corrected before merging.
- src/utils/provider-utils.ts
<!-- greptile_other_comments_section -->
<sub>(2/5) Greptile learns from your feedback when you react with thumbs up/down!</sub>
<!-- /greptile_comment -->
Most Similar PRs
#23424: feat: add Gemini 3.1 Pro Preview support (google-gemini-cli)
by hongchanroh · 2026-02-22
76.6%
#17841: fix(google): include 'google' provider in tool schema sanitization
by zerone0x · 2026-02-16
76.5%
#22214: fix(tools): sanitize google-antigravity schemas for Gemini-compatib...
by Kansodata · 2026-02-20
76.3%
#21835: fix: apply schema cleaning for google-antigravity in normalizeToolP...
by ephraimm · 2026-02-20
76.2%
#15301: Feat/gemini overflow and tags
by divisonofficer · 2026-02-13
76.0%
#10430: fix: remove Minimax from isReasoningTagProvider
by echoedinvoker · 2026-02-06
75.8%
#5011: fix(gemini): strip JSON thoughtSignature from tool calls for Gemini 3+
by shayan919293 · 2026-01-30
75.4%
#21181: fix(models): add gemini-3.1-pro-preview forward-compat for google-g...
by Mellowambience · 2026-02-19
75.2%
#22321: fix: sanitize tool schemas for all Cloud Code Assist providers
by Sr-0w · 2026-02-21
75.1%
#6559: Fix LiteLLM reasoning-tag handling + fallback to <think> content
by Najia-afk · 2026-02-01
74.8%