fix: preserve thought_signature across parallel tool calls for Gemini 3+ - #1000
Conversation
🦋 Changeset detectedLatest commit: 5c1d079 The changes in this PR will be included in the next version bump. This PR includes changesets to release 18 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
📝 WalkthroughWalkthroughThe PR modifies how tool extra data (thought_signature) is preserved during parallel tool calls in Gemini 3+ models, and updates the Agent's LLM configuration to rely on modelOptions for controlling parallel tool call behavior instead of hardcoded settings. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (3)
🧰 Additional context used📓 Path-based instructions (3)**/*.{ts,tsx,js,jsx}📄 CodeRabbit inference engine (.cursor/rules/agent-core.mdc)
Files:
**/*.{ts,tsx}?(test|example|spec)📄 CodeRabbit inference engine (.cursor/rules/agent-core.mdc)
Files:
**/*.{ts,tsx}?(test|example)📄 CodeRabbit inference engine (.cursor/rules/agent-core.mdc)
Files:
🧠 Learnings (2)📚 Learning: 2026-01-16T14:33:39.551ZApplied to files:
📚 Learning: 2026-01-16T14:33:39.551ZApplied to files:
🔇 Additional comments (4)
✏️ Tip: You can disable this entire section by setting Comment |
| toolCtx, | ||
| toolChoice, | ||
| connOptions, | ||
| parallelToolCalls: true, |
There was a problem hiding this comment.
Note: although this was hardcoded to true, the actual value was still correctly been overriden by user config inside LLM in previous version.
Fixes a 400 error when using Gemini 3+ models with parallel tool calls. The
thought_signatureis now correctly propagated to all tool calls in a batch instead of only the first one. Also removes a hardcodedparallelToolCalls: truein the voice pipeline that was overriding user configuration.Summary by CodeRabbit
Release Notes
Bug Fixes
Chores
✏️ Tip: You can customize this high-level summary in your review settings.