fix(ui): suppress redundant failure note when tool error note is shown#21078
fix(ui): suppress redundant failure note when tool error note is shown#21078NTaylorMullen merged 1 commit intomainfrom
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request refines the user interface's error reporting mechanism by eliminating redundant diagnostic messages. It ensures that users in low verbosity mode receive a single, clear error note when a tool failure precedes a final request failure, thereby improving the clarity and conciseness of error feedback. Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
|
Size Change: +41 B (0%) Total Size: 25.9 MB ℹ️ View Unchanged
|
There was a problem hiding this comment.
Code Review
This pull request effectively resolves an issue with redundant UI error notes in low verbosity mode. The change to useGeminiStream.ts correctly suppresses the generic failure message when a more specific tool error note has already been displayed. The updated test in useGeminiStream.test.tsx accurately validates this new behavior. The implementation is clean and directly addresses the problem.

Summary
Consolidate error diagnostic notes in the UI to avoid redundancy when both internal tool failures and final request failures occur simultaneously.
Existing failure:

Details
In low verbosity mode, the UI previously showed two identical "Press F12 for diagnostics" notes if a tool failed before the final request failure. This change suppresses the generic "This request failed..." note if the more specific "Some internal tool attempts failed..." note is already shown, as both provide the same diagnostic advice.
Related Issues
N/A
How to Validate
npm test -w @google/gemini-cli -- src/ui/hooks/useGeminiStream.test.tsxto verify the fix.Pre-Merge Checklist