zed/crates/agent_ui
Richard Feldman 67a5a78682
Stop retrying exhausted usage limits as transient rate limits
The ChatGPT Codex backend and the OpenAI API both report an exhausted
usage allowance as HTTP 429, with a body distinguishing it from an
ordinary short-lived rate limit (usage_limit_reached, usage_not_included,
insufficient_quota). from_http_status previously mapped every 429 to
RateLimitExceeded, so the agent retried requests that could not succeed
until the usage window reset, then surfaced a generic rate limit message.

Parse those bodies into a new UsageLimitReached completion error carrying
the provider's message and the reset delay, skip automatic retries for it,
and render a dedicated callout in the agent panel.
2026-08-19 16:20:56 -04:00
..
src Stop retrying exhausted usage limits as transient rate limits 2026-08-19 16:20:56 -04:00
Cargo.toml Speed up cargo build -p zed compilation (#62059) 2026-08-01 19:42:37 +00:00
LICENSE-GPL