Repository navigation
Closed
Labels
enhancementNew feature or request
Description
The Question
Copilot code review now reaches a weekly rate limit under the fleet's normal review traffic. How should the fleet spend its Copilot reviews?
What Is Known
- The limit is weekly and separate from the monthly budget. A fresh month does not reset it. Once it is reached, every review request fails until the stated reset.
- Reaching it is new. The limit is not. The default review level moved from lite to medium, and each review now consumes more.
- The model cannot be changed in settings, only the level. The failure message suggests switching to an auto model, and no setting found so far offers that.
- The failure is invisible to the fleet's tooling. The posted review body reads only "Copilot encountered an error and was unable to review this pull request". The rate-limit text appears only in the Copilot task log.
scripts/pr_review.pytherefore reports a refusal it cannot tell apart from a structural one, and a drive following the re-request rule keeps asking. - Current consumption is high by construction.
pr-review-conductre-requests Copilot after every push, so each fix push costs one full review. Parallel unattended lanes multiply that.
Options
These are not exclusive.
- Request Copilot at fewer moments. For example, on a pull request's first push and on the promotion pull request, with the recorded
local-strict-reviewpass covering intermediate fix pushes. This editspr-review-conduct,drive-pr, and the carried runbook. - Lower the review level back to lite where the setting allows it, trading depth per review for reviews per week.
- Cap Copilot use by unattended runs, for example one lane at a time, or no Copilot request from
unattended-handoffworkers. - Make the failure visible.
pr_review.pywould say a generic error refusal may be a quota, and the drive rule would stop re-requesting after one such refusal until the reset. - Lean on the other reviewers while Copilot is out. CodeRabbit reviews this public low-star repo on request. This is today's fallback rather than a plan.
Waiting On
The maintainer's own research into the limit and any configuration that lifts it.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity
ptr727 commentedon Oct 1, 2026
Maintainer's answer, 2026-10-01: the default review level is back to lite until the real cost is known (it is not disclosed beyond a stated 1 to 5 ratio between lite and medium). Build a mechanism that is judicious about when a bot review is requested on a pull request. Fewer requests cut cost, and they also cut review time, especially for CodeRabbit, which caps the review count per pull request. Treat it as a defensive feature covering every requested bot reviewer, not only Copilot. Options 1 and 4 above are the starting shape: request at defined moments rather than after every push, with the recorded local pass covering the pushes in between, and make a quota or rate-limit refusal visible so a drive stops re-requesting.
[-]Decide How the Fleet Spends Copilot Reviews Under a Weekly Rate Limit[/-][+]Request Bot PR Reviews Judiciously, and Stop on a Quota or Rate Limit[/+]ptr727 commentedon Oct 1, 2026
Adding a scope item: Copilot's automatic-review triggers, which need to change together with
wait's auto-request for any saving to happen.Two independent trigger configurations. Per GitHub's code review docs ("Automatic pull request reviews"), Copilot checks a user's own automatic-review setting and any applicable repository ruleset separately: "These configurations are not hierarchical; neither inherits from or overrides the other. A pull request is reviewed automatically when at least one configuration is enabled." Narrowing the maintainer's account setting to review-on-open only therefore changes nothing while the rulesets still trigger on push and on drafts.
The ruleset half is fleet config.
repo-config/develop.jsonandrepo-config/main.jsonboth carry thecopilot_code_reviewrule withreview_on_push: trueandreview_draft_pull_requests: true, and the live develop and main rulesets here match. Editing one repository's ruleset in the UI is drift that the next config run reverts, so the change is a hub edit to those two payloads, applied fleet-wide.The tooling half.
scripts/pr_review.py waitrequests a review whenever none covers the head and none is pending. Withreview_on_pushoff, an agent-driven loop would still get one review per pushed head, triggered bywaitinstead of by GitHub. The saving needswait(and the drive skills that call it) to decide when a head deserves a review rather than requesting one on every head.Proposed scope for this issue:
review_on_push: falseandreview_draft_pull_requests: falsein bothrepo-configpayloads, keeping review on open.wait's auto-request so a review is requested deliberately rather than per head, for example on the first head, on the head the drive considers final, and on promotion PRs.Shipping 1 without 2 saves nothing, and shipping 2 without 1 leaves GitHub reviewing every push anyway.
Related, under test: per the docs, Copilot chooses the review level from the level picked at request time, then "the level previously used on this pull request", then the requester's default, then the repository and owner defaults. If "previously used" means the most recent level, one manual Balanced pick on a promotion PR carries to every later round the tooling requests. Being tested now, and the result will be posted here.
ptr727 commentedon Oct 1, 2026
Follow-up on the review-level test mentioned above: dropped, not run.
The level cannot be set from code. Per the live GraphQL schema,
requestReviewstakes only reviewer ids andunion, and the ruleset's Copilot code review parameters carry onlyreviewOnPushandreviewDraftPullRequests. A per-PR level is a manual pick in the web UI's Reviewers section and nothing else, so every review the tooling requests runs at the effective default: the repository's setting where it overrides, the account default where it inherits. A manual Balanced pick stays an occasional exception for tricky code, so whether it carries over to later rounds on the same PR does not change this issue's design.Promote develop to main: Fork Handoff Chains, Qodo Login, JSON Report (…
ptr727 commentedon Oct 2, 2026
Design answers from the maintainer, 2026-10-01, each the recommended option:
local-strict-reviewpass on that head, and the gate accepts a Copilot round on an earlier head plus a recorded local pass on the current head. A promotion pull request still needs a Copilot round on its head, since that round reads the whole develop diff.review_on_push: falseandreview_draft_pull_requests: falseinrepo-config/develop.jsonandrepo-config/main.json, keeping review on open. This is a hub edit in the pull request. Applying the change to live repositories is a separate config run, and it needs its own go-ahead. The maintainer narrows the account-level setting in the UI.waitstops auto-requesting on that pull request, andstatusreports it as a possible quota refusal for the maintainer. Neither re-requests into it.A defect found while reading:
waitsends its auto-request before it consults the repository quota signal, so an exhausted account still spends a request. The fix lands with this issue.Stop Requesting Copilot Into a Reached Rate Limit (#2277)
Request Copilot at Defined Moments and Cover Fix Pushes With an Attes…