Description
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
Description
When the model provider returns the following rate limit error, opencode terminates the current task immediately instead of retrying automatically:
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
You have exceeded the request rate limitmay not be matched by the current retry detection logic, causing it to fall through as a fatal error