fix: make Retry-After use relative delay and improve 429 UX#409
Open
lc0rp wants to merge 3 commits intoopenclaw:mainfrom
Open
fix: make Retry-After use relative delay and improve 429 UX#409lc0rp wants to merge 3 commits intoopenclaw:mainfrom
lc0rp wants to merge 3 commits intoopenclaw:mainfrom
Conversation
Contributor
|
@lc0rp is attempting to deploy a commit to the Amantus Machina Team on Vercel. A member of the Team first needs to authorize it. |
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.
Impelements
Rationale
when installing skills vianpx clawhub@latest install <skill>` #390Work done
Testing
Checklist
Worked w/ codex on this.
Fixes #407
Greptile Summary
Standardizes
Retry-Afterheader semantics to use RFC-compliant delay-seconds instead of Unix epoch timestamps, and adds standardizedRateLimit-*headers alongside legacyX-RateLimit-*headers. The CLI is updated to parse these headers, display actionable retry/budget/reset info in error messages, and honorRetry-Afterwith jittered backoff.convex/lib/httpRateLimit.ts): now emits bothX-RateLimit-Reset(epoch) andRateLimit-Reset(delay), andRetry-Afteras delay-seconds on 429packages/clawdhub/src/http.ts): replaces inline p-retry withrunWithRetriesthat readsRetry-After, enriches error messages with retry/budget info, and supports legacy epoch-basedRetry-Aftervia a >1-year heuristic--write-outformat to extract rate-limit headers via a structured metadata marker (__CLAWHUB_CURL_META__)api.md,http-api.md,deploy.md, andtroubleshooting.mdwith new header semantics, example 429 responses, client handling guidance, and proxy/IP caveatsConfidence Score: 4/5
packages/clawdhub/src/http.tshas a minor redundancy in error path (double parseRateLimitInfo call) worth cleaning up.Last reviewed commit: d04c1e2
Context used:
dashboard- AGENTS.md (source)