Skip to content

Handle Notehub rate limits with bounded automatic retries - #82

Merged
Bucknalla merged 2 commits into
masterfrom
codex/notehub-rate-limit-retries
Nov 3, 2026
Merged

Bucknalla merged 2 commits into
masterfrom
codex/notehub-rate-limit-retries

Conversation

@rayozzie

@rayozzie rayozzie commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Notehub commands now retry HTTP 429 responses using Retry-After (seconds or HTTP dates), with a one-second fallback when it provides no usable positive delay. Retries are limited to six within a one-minute budget that includes request time and waits. Server-requested delays are never shortened to fit.

Retries require replayable bodies and retain OAuth refresh and cancellation handling. Persistent throttling produces a readable error with available limit details; --verbose reports retry waits. The README and tests cover the policy.

Validation: go test -race ./... and go vet ./... passed in both the root and lib/ modules. The root build and dependency verification for both modules also passed.

@Bucknalla
Bucknalla merged commit 45ceac6 into master Nov 3, 2026
1 check passed
@Bucknalla
Bucknalla deleted the codex/notehub-rate-limit-retries branch November 3, 2026 21:56
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