Skip to content

fix: format provider rate limit errors - #11249

Merged
marius-kilocode merged 1 commit into
mainfrom
indecisive-uranium
Jun 15, 2026
Merged

fix: format provider rate limit errors#11249
marius-kilocode merged 1 commit into
mainfrom
indecisive-uranium

Conversation

@marius-kilocode

@marius-kilocode marius-kilocode commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator

OpenAI Responses-compatible providers can emit in-stream rate_limit_exceeded events with an empty message. These errors currently fall through as unknown failures, causing the extension to expose nested raw response JSON even though the retry layer recognizes the same condition.

Normalize these events at the CLI provider boundary into retryable API errors, preserving provider-supplied messages and the original response while supplying a concise fallback when the message is empty. The extension also unwraps nested serialized errors defensively so existing or partially normalized session errors render the same readable result.

file-2e1c4486024d7c1bf77bea0feabe4b48 dyn-fe68bdfcdb3c995ff9674e4f4a4641b3

@marius-kilocode
marius-kilocode merged commit c9ffc0b into main Jun 15, 2026
22 checks passed
@marius-kilocode
marius-kilocode deleted the indecisive-uranium branch June 15, 2026 12:36
t7tran pushed a commit to t7tran/kilocode that referenced this pull request Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants