From 760fb9eb85894482ecba37bd21c73ac787aabf52 Mon Sep 17 00:00:00 2001 From: tsubasakong Date: Tue, 17 Mar 2026 10:30:16 -0700 Subject: [PATCH] Extend model error retry logic to all providers, not just OpenAI-like Previously, transient 5xx server errors were only retried for OpenAI-like models. This caused tasks using other providers (e.g. Google Gemini) to fail immediately on temporary outages like 503 high-demand errors. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/agent/runtime/attempt.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/agent/runtime/attempt.ts b/src/agent/runtime/attempt.ts index 31446a9..a6313a4 100644 --- a/src/agent/runtime/attempt.ts +++ b/src/agent/runtime/attempt.ts @@ -113,9 +113,9 @@ function hasRetryableServerErrorSignature(detail: string): boolean { function isRetryableUpstreamModelError( detail: string, - modelInfo: Pick, + _modelInfo: Pick, ): boolean { - return isOpenAiLikeRuntimeModel(modelInfo) && hasRetryableServerErrorSignature(detail); + return hasRetryableServerErrorSignature(detail); } const PHONE_ONLY_TOOL_NAMES = new Set([