fix(a2a): Don't throw errors for GeminiEventType Retry and InvalidStream. (#16541)

Co-authored-by: Gal Zahavi <38544478+galz10@users.noreply.github.com>
This commit is contained in:
Emily Hedlund
2026-01-14 12:04:51 -05:00
committed by GitHub
parent dfb7dc7069
commit 764016bca7
2 changed files with 42 additions and 0 deletions

View File

@@ -707,6 +707,10 @@ export class Task {
case GeminiEventType.ModelInfo:
this.modelInfo = event.value;
break;
case GeminiEventType.Retry:
case GeminiEventType.InvalidStream:
// An invalid stream should trigger a retry, which requires no action from the user.
break;
case GeminiEventType.Error:
default: {
// Block scope for lexical declaration