Skip to content

Session retries forever on weekly rate limit errors #24011

Closed as not planned
Closed as not planned

Description

@eeshm

Description

When a provider returns a non-transient 429 (e.g. GitHub Copilot "exceeded your weekly rate limit"), the session retries forever instead of stopping. User has to press Esc to exit.

The AI SDK marks all 429s as isRetryable: true, so retryable() never returns undefined for these errors.

Plugins

No response

OpenCode version

No response

Steps to reproduce

  1. Use a provider (e.g. GitHub Copilot) until the weekly rate limit is exhausted
  2. Send any message
  3. Session keeps showing "attempt 1", "attempt 2"... indefinitely

Screenshot and/or share link

Image

Operating System

Windows 11

Terminal

Windows Terminal

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Apr 23, 2026
  2. github-actions commented on Apr 23, 2026

    @github-actions
    Contributor

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

    Please review those issues and comment there if your situation matches, or clarify how this differs if it does not.

  3. eeshm commented on Apr 23, 2026

    @eeshm
    Author

    opened a PR that fixes this by stopping retries for non-transient 429 quota limits (weekly/monthly). other retry behavior is unchanged

  4. removed
    bugSomething isn't working
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  5. github-actions commented on Jul 4, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions