Update Attempt text to Retry when showing the retry happening to the … (#17178)

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
Sehoon Shon
2026-01-20 23:57:00 -05:00
committed by GitHub
parent 3a4012f76a
commit 367e7bf401
2 changed files with 2 additions and 2 deletions

View File

@@ -229,7 +229,7 @@ describe('useLoadingIndicator', () => {
);
expect(result.current.currentLoadingPhrase).toBe(
'Trying to reach gemini-pro (Attempt 2/3)',
'Trying to reach gemini-pro (Retry 2/2)',
);
});
});

View File

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