From 48a448dd59471ce50713c5e10524b0bfad87ab2b Mon Sep 17 00:00:00 2001 From: jnjpng Date: Mon, 16 Feb 2026 13:29:24 -0800 Subject: [PATCH] fix(retry): add ChatGPT connection error patterns to retriable error detection (#977) --- src/cli/App.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cli/App.tsx b/src/cli/App.tsx index 22416ca..b630e7c 100644 --- a/src/cli/App.tsx +++ b/src/cli/App.tsx @@ -494,11 +494,12 @@ async function isRetriableError( const llmProviderPatterns = [ "Anthropic API error", // anthropic_client.py:759 "OpenAI API error", // openai_client.py:1034 + "ChatGPT API error: upstream connect error", // chatgpt_oauth_client.py - upstream connect errors "Google Vertex API error", // google_vertex_client.py:848 "overloaded", // anthropic_client.py:753 - used for LLMProviderOverloaded "api_error", // Anthropic SDK error type field "Network error", // Transient network failures during streaming - "Connection error during Anthropic streaming", // Peer disconnections, incomplete chunked reads + "Connection error during", // Peer disconnections, incomplete chunked reads (Anthropic, ChatGPT streaming) ]; if ( llmProviderPatterns.some((pattern) => detail.includes(pattern)) &&