anomalyco / anomalyco/opencode
AWS Bedrock 429 "Too many tokens, please wait before trying again" triggers auto-compaction instead of retry
Open
@rekram1-node is already working on this.
Since Jul 30, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
When experiencing account-level throttling on AWS Bedrock, OpenCode interprets the "Too many tokens, please try again later" message too broadly, and attempts to trigger auto-compaction instead of simply retrying the request.
Plugins
No response
OpenCode version
1.18.9
Steps to reproduce
No response
Screenshot and/or share link
No response
Operating System
macOS 15.7.3
Terminal
Ghostty
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.