Skip to content

refactor(opencode): simplify retry error matching - #40694

Merged
rekram1-node merged 2 commits into
devfrom
cleanup-retries
Aug 5, 2026
Merged

refactor(opencode): simplify retry error matching#40694
rekram1-node merged 2 commits into
devfrom
cleanup-retries

Conversation

@rekram1-node

Copy link
Copy Markdown
Collaborator

Summary

  • classify serialized midstream retry errors using direct string matching instead of parsing JSON
  • preserve friendly messages for too-many-request and overloaded errors
  • handle serialized rate_limit errors through the common rate-limit path

Testing

  • bun test test/session/retry.test.ts
  • bun test test/session/processor-effect.test.ts --test-name-pattern "structured json errors"
  • bun typecheck

@rekram1-node
rekram1-node merged commit f929f8f into dev Aug 5, 2026
11 checks passed
@rekram1-node
rekram1-node deleted the cleanup-retries branch August 5, 2026 18:05
DevFlex-AI added a commit to bolt-builder/bolt-cli that referenced this pull request Aug 5, 2026
refactor(opencode): simplify retry error matching (anomalyco#40694)
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