mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-26 13:04:49 -07:00
fix(ui): suppress redundant failure note when tool error note is shown (#21078)
This commit is contained in:
@@ -1050,9 +1050,9 @@ describe('useGeminiStream', () => {
|
|||||||
);
|
);
|
||||||
expect(noteIndex).toBeGreaterThanOrEqual(0);
|
expect(noteIndex).toBeGreaterThanOrEqual(0);
|
||||||
expect(stopIndex).toBeGreaterThanOrEqual(0);
|
expect(stopIndex).toBeGreaterThanOrEqual(0);
|
||||||
expect(failureHintIndex).toBeGreaterThanOrEqual(0);
|
// The failure hint should NOT be present if the suppressed error note was shown
|
||||||
|
expect(failureHintIndex).toBe(-1);
|
||||||
expect(noteIndex).toBeLessThan(stopIndex);
|
expect(noteIndex).toBeLessThan(stopIndex);
|
||||||
expect(stopIndex).toBeLessThan(failureHintIndex);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should group multiple cancelled tool call responses into a single history entry', async () => {
|
it('should group multiple cancelled tool call responses into a single history entry', async () => {
|
||||||
|
|||||||
@@ -596,7 +596,10 @@ export const useGeminiStream = (
|
|||||||
if (!isLowErrorVerbosity || config.getDebugMode()) {
|
if (!isLowErrorVerbosity || config.getDebugMode()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (lowVerbosityFailureNoteShownRef.current) {
|
if (
|
||||||
|
lowVerbosityFailureNoteShownRef.current ||
|
||||||
|
suppressedToolErrorNoteShownRef.current
|
||||||
|
) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user