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
[Bug]: Model rate limit error causes immediate termination instead of auto-retry #16994
When the model provider returns the following rate limit error, opencode terminates the current task immediately instead of retrying automatically:
You have exceeded the request rate limit. Please wait a short period before retrying your request or contact the support to increase your request rate limit.
Expected Behavior
Detect this rate limit response and apply retry-with-backoff logic, similar to what was added for other rate limit cases (see #452). The user should not need to restart their entire task.
Current Behavior
opencode aborts the task immediately upon receiving this error message. There is no retry attempt.
Steps to Reproduce
Trigger a request that causes the model provider to respond with the rate limit message above (e.g. by sending many requests in a short period).
Notes
The error string You have exceeded the request rate limit may not be matched by the current retry detection logic, causing it to fall through as a fatal error
Activity
github-actions commentedon Mar 11, 2026
This issue might be a duplicate of existing issues. Please check: