Skip to content

Agents are not waiting for coderabbit reviews to complete and are prematurely claiming ready for review #1097

Closed

Description

@ptr727

It has happened several times that an agent claims the pr is ready for my review, when i go and look there are open unresolved coderabbit items.

I suspect the the pr review script is not making a distinction between a coderabbit review that has either not started or not completed, and it is a point of eval vs. use issue.

Activity

  1. ptr727 commented on Sep 3, 2026

    @ptr727
    OwnerAuthor

    Verified against the current tree on develop: the machinery this issue asks for is built and is the documented standard call.

    scripts/pr_review.py today implements each half of the ask:

    • Waiting for the review to actually complete. The wait subcommand backs off in-process, and reviewed_head / head_reviews distinguish "reviewed this head SHA" from "reviewed an earlier one", which is the premature-ready case this issue names.
    • Not misreading an unavailable reviewer as a clean run. Quota-refusal detection and the CodeRabbit rate-limit marker are handled explicitly, with dedicated exit codes 46 and 47 for quota exhaustion.
    • Coverage. coverage_of / head_coverage / table_against_diff check whether a round actually read every changed file, rather than trusting that a review landed at all.

    AGENTS.md now names pr_review.py wait as the call to make before claiming a PR ready, and states that the number closing a loop is on_head=0 rather than suppressed=0.

    Closing as resolved. Two narrower descendants of this behavior remain tracked separately and are unaffected by this close: #1060 (check budget/quota status before reporting a reviewer bot as broken) and #1071 (a GitHub Actions billing-failure notice can be misread as UNRECOGNIZED_REVIEWER_OUTPUT).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions