fix(session): retry Codex server_is_overloaded stream errors#25728
fix(session): retry Codex server_is_overloaded stream errors#25728ItsWendell wants to merge 1 commit into
Conversation
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
|
Opened #30323 with overlapping overload handling plus stream_read_error, rate-limit stream chunks, and validation-wrapped envelopes. If maintainers prefer smaller PRs, I can split overload vs upstream retry paths. |
|
Automated PR Cleanup Thank you for contributing to opencode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
Issue for this PR
Closes #25730
Type of change
What does this PR do?
Codex subscription streams can return transient overload errors as nested
type: errorevents witherror.code: server_is_overloadedanderror.type: service_unavailable_error.This PR routes that stream error through the existing retry path, and keeps the generic retry fallback aware of nested provider error codes/types.
How did you verify your code works?
bun test test/session/retry.test.tsbun typecheckbun turbo typecheckScreenshots / recordings
Not applicable, no UI changes.
Checklist