feat(core): add HTTP 499 to retryable errors and map to RetryableQuotaError (#20432)

This commit is contained in:
Bryan Morgan
2026-02-26 10:42:34 -05:00
committed by GitHub
parent 94c2ecef9c
commit bc21652878
8 changed files with 92 additions and 19 deletions
+3 -3
View File
@@ -144,14 +144,14 @@ describe('GeminiCliAgent Integration', () => {
});
it('propagates errors from dynamic instructions', async () => {
const goldenFile = getGoldenPath('agent-static-instructions');
const agent = new GeminiCliAgent({
instructions: () => {
throw new Error('Dynamic instruction failure');
},
model: 'gemini-2.0-flash',
fakeResponses: RECORD_MODE
? undefined
: getGoldenPath('agent-dynamic-instructions'),
recordResponses: RECORD_MODE ? goldenFile : undefined,
fakeResponses: RECORD_MODE ? undefined : goldenFile,
});
const session = agent.session();