adding back Update Attempt text to Retry change that was accidentally reverted

This commit is contained in:
Sehoon Shon
2026-01-27 08:58:43 -05:00
parent 0dc69bd364
commit dc9920bc76
2 changed files with 2 additions and 2 deletions

View File

@@ -223,6 +223,6 @@ describe('useLoadingIndicator', () => {
);
expect(result.current.currentLoadingPhrase).toContain('Trying to reach');
expect(result.current.currentLoadingPhrase).toContain('Attempt 3/3');
expect(result.current.currentLoadingPhrase).toContain('Retry 2/2');
});
});

View File

@@ -66,7 +66,7 @@ export const useLoadingIndicator = ({
}, [streamingState, elapsedTimeFromTimer]);
const retryPhrase = retryStatus
? `Trying to reach ${getDisplayString(retryStatus.model)} (Attempt ${retryStatus.attempt + 1}/${retryStatus.maxAttempts})`
? `Trying to reach ${getDisplayString(retryStatus.model)} (Retry ${retryStatus.attempt}/${retryStatus.maxAttempts - 1})`
: null;
return {