Skip to content

Handle nested AI retry errors#665

Merged
jahooma merged 2 commits into
mainfrom
jahooma/fix-ai-retry-conflict
May 13, 2026
Merged

Handle nested AI retry errors#665
jahooma merged 2 commits into
mainfrom
jahooma/fix-ai-retry-conflict

Conversation

@jahooma
Copy link
Copy Markdown
Contributor

@jahooma jahooma commented May 13, 2026

Summary

Fixes retry-wrapped AI SDK API errors so structured server details survive when the final thrown error is AI_RetryError instead of the original APICallError.

This lets Freebuff 409 gate errors like session_superseded and session_model_mismatch reach the CLI as typed errors instead of showing a generic “Failed after 4 attempts. Last error: Conflict” banner.

Validation: focused retry/error tests, package typechecks for common, agent-runtime, and sdk, Prettier check, and git diff --check.

@jahooma jahooma merged commit 67de107 into main May 13, 2026
35 checks passed
@jahooma jahooma deleted the jahooma/fix-ai-retry-conflict branch May 13, 2026 00:39
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