You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test: clarify distinction between UI display and auto-retry
Added tests that explicitly demonstrate the key distinction:
- hasInterruptedStream = Should RetryBarrier UI be shown?
- isEligibleForAutoRetry = Should system auto-retry?
For non-retryable errors (authentication, quota):
- hasInterruptedStream returns true (show UI)
- isEligibleForAutoRetry returns false (don't auto-retry)
- Result: User sees manual Retry button, not 'Retrying...'
For retryable errors (network, server):
- Both return true
- Result: User sees 'Retrying...' with countdown and exponential backoff
This prevents confusion about why we have two similar-sounding functions.
0 commit comments