-
Notifications
You must be signed in to change notification settings - Fork 24
🐛 Avoid displaying Gemini tool calls #1251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
⛔ Snyk checks have failed. 1 issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
📝 WalkthroughWalkthroughThe handler for Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 Tip Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@vscode/core/src/utilities/ModifiedFiles/processMessage.ts`:
- Around line 304-308: In processMessage, when handling the
Array.isArray(chunk.content) branch, guard against arrays that contain only
non-text tool-call parts: compute the filtered list (e.g., filteredTexts =
chunk.content.filter(...).map(...)) and if filteredTexts.length === 0 then skip
creating/using content (e.g., return early or continue so no empty string is
propagated), otherwise set content = filteredTexts.join(""); ensure this uses
the existing chunk.content and content variables so downstream code (message
append logic) never receives an empty "" chat message.
Signed-off-by: Alejandro Brugarolas <[email protected]>
645da7c to
91d4c9a
Compare
Resolves #1129
Summary by CodeRabbit