Skip to content

fix: recover Anthropic streams failing mid-response with transient SS… - #640

Open
rschmukler wants to merge 2 commits into
editor-code-assistant:masterfrom
rschmukler:rs/fix-anthropic-retry
Open

rschmukler wants to merge 2 commits into
editor-code-assistant:masterfrom
rschmukler:rs/fix-anthropic-retry

Conversation

@rschmukler

@rschmukler rschmukler commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Classify api_error, overloaded_error and timeout_error SSE error events as overloaded so they are retried before content, or auto-continued once the response has started, instead of ending the prompt.

Also makes it so that the auto-continue budget will reset after a completed step, useful for agents where they could have a very long turn.

  • I added a entry in changelog under unreleased section.
  • This is not an AI slop. (Please take a human time to write a comprehensive context about the problem, alternatives and rationale)

…E errors

Classify api_error, overloaded_error and timeout_error SSE error events as overloaded so they are retried before content, or auto-continued once the response has started, instead of ending the prompt.
maxAutoContinues now limits consecutive recoveries instead of recoveries per user turn. The count resets once a response completes and its tools run, so long agentic turns aren't stopped by transient failures spread across many steps.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant