Skip to content

[BUG] Rate limiting messages are shown as API errors in webview #10202

@rossdonald

Description

@rossdonald

Problem (one or two sentences)

The rate limiting messages that used to just show a countdown are now shown within the error details and are classified as errors.

Instead of showing the countdown till the request it shows:
API Error - Unknown API error. Please contact Roo Code support.
Clicking the Error details info icon shows: Rate limiting for 4 seconds...

Listed in the errors:

| "api_req_retry_delayed"

Uses error title

case "api_req_retry_delayed":
return t("chat:apiRequest.errorTitle", { code: code ? ` · ${code}` : "" })

Uses failure message

case "api_req_retry_delayed":
let body = t(`chat:apiRequest.failed`)

Context (who is affected and when)

Users who use APIs with rate limits

Reproduction steps

  1. Go to settings > Providers
  2. Open Advanced Settings
  3. Set Rate Limit to 10s
  4. Make requests

Expected result

Shows countdown to next request

Actual result

Shows API error

Variations tried (optional)

Tried different models, same behaviour

App Version

3.36.13

API Provider (optional)

Google Gemini

Model Used (optional)

gemini-3-flash-preview OR glm4.6

Roo Code Task Links (optional)

No response

Relevant logs or errors (optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue/PR - TriageNew issue. Needs quick review to confirm validity and assign labels.bugSomething isn't working

    Type

    No type

    Projects

    Status

    Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions