Skip to content

Session retries forever on weekly rate limit errors #24011

@eeshm

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions