GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Anthropic 5xx errors incorrectly marked non-retryable, stopping agent loop · Issue #19394 · anomalyco/opencode Closed as not planned Closed as not planned Copy link DescriptionBugWhen the Anthropic API returns a 500 Internal Server Error via SSE stream, the agent loop stops immediately instead of retrying. Root CauseThe Vercel AI SDK's Anthropic provider creates In isRetryable: input.providerID.startsWith("openai") ? isOpenAiErrorRetryable(input.error) : input.error.isRetryable Then in if (!error.data.isRetryable) return undefined Returning ImpactAny Anthropic API 500 error kills the agent session. Users see Note: OpenAI errors are handled separately with EvidenceFrom production logs — all 6 occurrences show Suggested FixIn function isServerError(e: APICallError): boolean { return !!e.statusCode && e.statusCode >= 500 && e.statusCode < 600 } Then in isRetryable: isServerError(input.error) || ( input.providerID.startsWith("openai") ? isOpenAiErrorRetryable(input.error) : input.error.isRetryable ) This ensures ANY 5xx error is retryable regardless of what the upstream SDK reports, matching standard HTTP retry semantics. Environment
Reacted by mzq592 Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |