From 4222664a5523634d7b2096053ae5cbd5e16c6063 Mon Sep 17 00:00:00 2001 From: cthomas Date: Mon, 9 Mar 2026 19:33:26 -0700 Subject: [PATCH] fix: cloudflare edge case (#1309) --- src/cli/App.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/cli/App.tsx b/src/cli/App.tsx index 5997295..501dc00 100644 --- a/src/cli/App.tsx +++ b/src/cli/App.tsx @@ -5519,10 +5519,14 @@ export default function App({ // When lastRunId is present, prefer the richer server-side error details below. if (fallbackError && !lastRunId) { setNetworkPhase("error"); - const errorMsg = `Stream error: ${fallbackError}`; + const formattedFallback = formatErrorDetails( + fallbackError, + agentIdRef.current, + ); + const errorMsg = `Stream error: ${formattedFallback}`; appendError(errorMsg, { errorType: "FallbackError", - errorMessage: fallbackError, + errorMessage: formatTelemetryErrorMessage(fallbackError), context: "message_stream", }); appendError(ERROR_FEEDBACK_HINT, true);