You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
More resilient retry policy for Amazon Bedrock rate limiting #452
Claude Sonnet 4 juste became available in my AWS region (eu-central-1) and my increase quota request is still pending so I often get rate limited. This is not an issue in Claude Code as they use some sort of exponential backoff and it eventually works but it looks like OpenCode just tries 3 times and stops the generation.
Would be great if we had a more resilient retry policy in OpenCode.
It would be cool if this could be designed in a way that it would work for Claude subscriptions so if a limit was hit and then say I went to bed open code could pick up in a few hours or whenever my limits reset in the 5 hour interval. I don’t know if those limits give any info on when they will reset but it would be cool for it to use the quota for the 5 hour period where I would be sleeping and otherwise not using any tokens.
I don’t know if that would make too crazy of a back off or not but that just would help get more bang for my buck.
Activity
phenomen commentedon Jun 27, 2025
I use the official Anthropic API endpoint and get rate limited all the time. It would be great if OpenCode had:
I would rather wait a minute for the limit to reset than have the agent drop the task basically immediately.
AsocPro commentedon Jun 27, 2025
It would be cool if this could be designed in a way that it would work for Claude subscriptions so if a limit was hit and then say I went to bed open code could pick up in a few hours or whenever my limits reset in the 5 hour interval. I don’t know if those limits give any info on when they will reset but it would be cool for it to use the quota for the 5 hour period where I would be sleeping and otherwise not using any tokens.
I don’t know if that would make too crazy of a back off or not but that just would help get more bang for my buck.
kierr commentedon Oct 8, 2025
Retries is now 10, and then there's also #2116
Merge pull request anomalyco#452 from different-ai/chore/aur-0.11.11