Return user-facing message if API reuturn 429 API rate limit reached #2202#10415
Merged
steipete merged 3 commits intoopenclaw:mainfrom Feb 14, 2026
Merged
Conversation
Contributor
Additional Comments (1)
In Prompt To Fix With AIThis is a comment left during a code review.
Path: src/agents/pi-embedded-helpers/errors.ts
Line: 425:428
Comment:
**Wrong message for 429**
In `sanitizeUserFacingText`, the `ERROR_PREFIX_RE` branch collapses *both* overloaded and rate-limit errors into the overloaded message (`"temporarily overloaded"`). This means a user-facing `Error: 429 ...` string will be mislabeled as overload even though `formatAssistantErrorText` now has a specific rate-limit message. If `sanitizeUserFacingText` is used on these errors (e.g., for non-assistant/raw error paths), 429s won’t show the intended rate-limit copy.
How can I resolve this? If you propose a fix, please make it concise. |
a384f4c to
f7f276e
Compare
Contributor
Author
|
Hi @mkbehr , can you please review this ? |
steipete
added a commit
that referenced
this pull request
Feb 14, 2026
643c466 to
c6ce808
Compare
c6ce808 to
5a4a509
Compare
mverrilli
pushed a commit
to mverrilli/openclaw
that referenced
this pull request
Feb 14, 2026
…penclaw#2202 (openclaw#10415) * Return user-facing message if API reuturn 429 API rate limit reached * clarify the error message * fix(agents): improve 429 user messaging (openclaw#10415) (thanks @vincenthsin) --------- Co-authored-by: Peter Steinberger <steipete@gmail.com>
akoscz
pushed a commit
to akoscz/openclaw
that referenced
this pull request
Feb 15, 2026
…penclaw#2202 (openclaw#10415) * Return user-facing message if API reuturn 429 API rate limit reached * clarify the error message * fix(agents): improve 429 user messaging (openclaw#10415) (thanks @vincenthsin) --------- Co-authored-by: Peter Steinberger <steipete@gmail.com>
GwonHyeok
pushed a commit
to learners-superpumped/openclaw
that referenced
this pull request
Feb 15, 2026
…penclaw#2202 (openclaw#10415) * Return user-facing message if API reuturn 429 API rate limit reached * clarify the error message * fix(agents): improve 429 user messaging (openclaw#10415) (thanks @vincenthsin) --------- Co-authored-by: Peter Steinberger <steipete@gmail.com>
snowzlm
pushed a commit
to snowzlm/openclaw
that referenced
this pull request
Feb 15, 2026
…penclaw#2202 (openclaw#10415) * Return user-facing message if API reuturn 429 API rate limit reached * clarify the error message * fix(agents): improve 429 user messaging (openclaw#10415) (thanks @vincenthsin) --------- Co-authored-by: Peter Steinberger <steipete@gmail.com>
zooqueen
pushed a commit
to hanzoai/bot
that referenced
this pull request
Mar 6, 2026
…penclaw#2202 (openclaw#10415) * Return user-facing message if API reuturn 429 API rate limit reached * clarify the error message * fix(agents): improve 429 user messaging (openclaw#10415) (thanks @vincenthsin) --------- Co-authored-by: Peter Steinberger <steipete@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix #2202 with Google Antigravity. Manually local tests have done and passed.
This PR only fix the case of API 429 error. The 402 error should be fixed in a separate branch.
Greptile Overview
Greptile Summary
configandsessionKeythrough embedded runner/subscribe plumbing so error formatting can use sandbox/tool policy context.lifecycle:errorevent onagent_endwhen the final assistant message ended in error.Confidence Score: 4/5
(2/5) Greptile learns from your feedback when you react with thumbs up/down!