From 77c51eb23d6a23310d4471126b866c186f9ebf7f Mon Sep 17 00:00:00 2001 From: Charles Packer Date: Sun, 11 Jan 2026 19:40:21 -0800 Subject: [PATCH] fix: retry on network errors during LLM streaming (#519) Co-authored-by: Letta --- src/cli/App.tsx | 1 + src/headless.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/cli/App.tsx b/src/cli/App.tsx index 91d6498..8884ff8 100644 --- a/src/cli/App.tsx +++ b/src/cli/App.tsx @@ -247,6 +247,7 @@ async function isRetriableError( "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 ]; if ( errorType === "internal_error" && diff --git a/src/headless.ts b/src/headless.ts index 6254450..b3a5cbb 100644 --- a/src/headless.ts +++ b/src/headless.ts @@ -1268,6 +1268,7 @@ export async function handleHeadlessCommand( "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 ]; const isLlmErrorFromDetail = errorType === "internal_error" &&