You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(github): a rate-limit check for another host leaves the github.com quotas unchanged #1968
A devops gh api rate_limit call that names another GitHub host with --hostname stores that host's answer as the github.com quotas. The rate limiter then paces github.com requests on numbers from the wrong host.
Evidence
Found while fixing fix(github): devops gh api rate_limit --jq fails with Invalid rate_limit payload format #1886. run_gh reads the answer of every rate-limit check as the /rate_limit quotas of the default host (src/devops_cli/github/rate_limiter.py, _prints_rate_limit_answer and the quota read after it). The argparse model of gh api (github/request_classifier.py) parses --hostname, but the quota read ignores it.
Existing tool considered
gh already sends the request to the named host. Nothing is built; the fix keys the stored quotas by host, or does not store an answer from another host.
Proposed remedy
The quota read stores a rate-limit answer only for the host the limiter paces. A test sends a check with --hostname and shows that the github.com quotas stay as they were.
Activity
dan-petty commentedon Oct 23, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones on the board.
The candidate fixes a problem in the rate-limit handling logic.The issue affects how rate limits are applied to requests.The fix ensures correct quota handling for different GitHub hosts.The fix requires changes in quota storage and retrieval logic.