diff --git a/src/cli/App.tsx b/src/cli/App.tsx index d048262..bb0a89a 100644 --- a/src/cli/App.tsx +++ b/src/cli/App.tsx @@ -255,6 +255,7 @@ async function isRetriableError( "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 ]; if (llmProviderPatterns.some((pattern) => detail.includes(pattern))) { return true; diff --git a/src/headless.ts b/src/headless.ts index bd16a21..5147a5a 100644 --- a/src/headless.ts +++ b/src/headless.ts @@ -1173,6 +1173,7 @@ export async function handleHeadlessCommand( "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 ]; const isLlmErrorFromDetail = llmProviderPatterns.some((pattern) => detail.includes(pattern),