Handle cleaning up the response text in the UI when a response stream retry occurs (#7416)

This commit is contained in:
Victor May
2025-09-03 22:00:16 -04:00
committed by GitHub
parent b49410e1d0
commit e7a4142b2a
8 changed files with 455 additions and 256 deletions

View File

@@ -650,6 +650,9 @@ export const useGeminiStream = (
// before we add loop detected message to history
loopDetectedRef.current = true;
break;
case ServerGeminiEventType.Retry:
// Will add the missing logic later
break;
default: {
// enforces exhaustive switch-case
const unreachable: never = event;