Skip to content

Quota Limit Exceeded Error is not handled properly. #3525

Closed

Description

@arhen

Description

When using opencode with Github Copilot provider quota is reached max limit, there is no anything happened neither notification errors.
It stuck on Generating . . . loading:
Image

Logs:

Image

OpenCode version

v0.15.23

Steps to reproduce

  1. Login using GitHub copilot with reached max limit token
  2. Prompt whatever

Screenshot and/or share link

No response

Operating System

macOS 26.x

Terminal

Ghostty

Activity

  1. github-actions commented on Oct 29, 2025

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  2. berenar commented on Oct 29, 2025

    @berenar
    Contributor

    Yes I've seen this happen to me too. While #768 would allow the user to see what happened, it would not fix it

  3. self-assigned this
    on Oct 29, 2025
  4. CoolCold commented on Nov 9, 2025

    @CoolCold

    I've just hit the same issue, namely with Gemini and 429 / rate limit exceeded isssue
    This type of things are handled quite well by Aider ( https://github.com/Aider-AI/aider ) and somewhat by Crush ( charmbracelet/crush#536 (comment) )

    • Aider does exponential backoff - retrying in 2, 4, 8..seconds with clear visible indication
    • Crush currently just reports the issue and stops - which is yet better than infinite retry
    • From what I see, Gemini API replies with the time interval when you can repeat your query back again - can be taken as a hint I guess

    Opencode keeps going for hours, like:

    • Image
    • Image

    Note, that ratelimits can happen on both free and paid subscription on Gemini/Google

    ❯ opencode --version
    1.0.45
    

    My naive understanding of recent changes, in Zen ratelimiter - 30b1ae5#diff-8ab8205b374f3d1907779abb668ee07eb06a6d8ba82bd5ce4991005375d01d6cR102 says that currently the way is to implement it per provider , not as a generic phase of request handling and I don't see the retry with backoff - I may be totally wrong here of course.

  5. rekram1-node commented on Nov 9, 2025

    @rekram1-node
    Contributor

    @CoolCold very valid points and both of these will be fixed soon

    the visual part is something we have been missing wayy too long

    and the other part will be fixed first thing tmr

  6. burka commented on Nov 16, 2025

    @burka

    I hit those limits with my Cerebras.ai plan which will return a 429 until midnight each time and opencode just stalls. That feels really awkward :-/

  7. rekram1-node commented on Nov 16, 2025

    @rekram1-node
    Contributor

    Dax has this fixed should ship soon I think

  8. burka commented on Nov 18, 2025

    @burka

    When I am out of quota it just stalled yesterday, but today I saw this beautiful message :-) <3
    Image

  9. rekram1-node commented on Nov 18, 2025

    @rekram1-node
    Contributor

    Yay!

  10. burka commented on Nov 18, 2025

    @burka

    Love it! Don't love the message, but love the way opencode shows it! Thanks a lot! <3

    Image
  11. rekram1-node commented on Nov 18, 2025

    @rekram1-node
    Contributor

    I think the message comes from whatever provider u are using

  12. burka commented on Nov 18, 2025

    @burka

    Yeah! That's the Cerebras Message when you hit your 120M token per day limit :-) So everything is great, thanks for this new message! Before this update opencode just stalled and stopped doing anything, so it's a lot better :-) Even though I would prefer my Quota to never end.... Thanks for your work!

  13. arhen commented on Dec 4, 2025

    @arhen
    Author

    Thankyou @rekram1-node

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions