Skip to content

fix(ai): retry every provider error - #2201

Merged
bobleer merged 2 commits into
mainfrom
bob/retry-all-ai-request-errors
Aug 11, 2026
Merged

fix(ai): retry every provider error#2201
bobleer merged 2 commits into
mainfrom
bob/retry-all-ai-request-errors

Conversation

@bobleer

@bobleer bobleer commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • route every non-success provider HTTP response through the existing bounded retry loop, regardless of status code or structured error category
  • retry every aggregated stream error until the existing attempt budget is exhausted
  • remove model-loss, transient-category, permanent-keyword, and context-overflow retry admission checks while preserving cancellation, exponential backoff, rate-limit pacing, and Retry-After
  • add regressions covering ordinary 400, context-overflow 400, and a formerly non-retryable SSE parsing error

Verification

  • cargo test -p bitfun-ai-adapters (248 passed)
  • cargo test -p bitfun-agent-stream (66 passed)
  • pnpm run fmt:rs
  • git diff --check

AI-assisted change: implemented with OpenAI Codex and verified with the focused repository test suites above.

@bobleer
bobleer merged commit 22f5411 into main Aug 11, 2026
7 checks passed
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