Skip to content

Exit pr_review.py wait When Unresolved Threads Land on an Attested Head #3671

Closed

Description

@ptr727

Behavior

On a pull request into develop whose head carries a local-review attestation, pr_review.py wait requests no Copilot round and polls the checks instead. While it polls, other reviewers keep posting. Qodo opens threaded findings within minutes of the push, and CodeRabbit posts its own threads later. wait has no outcome for that. It keeps polling while unresolved threads land on the head. So a driver backgrounding wait as its signal to act is never told there is work to dispose of.

The merge then reads BLOCKED, since unresolved conversations block it, while every check has completed. In the case that showed this, wait was still polling with checks=23/23, merge=BLOCKED, and five unresolved threads from two reviewers on the head. status would have shown them at once.

Reproduction shape

  1. Open a pull request into develop, attest the head with pr_review.py attest, and run pr_review.py wait <n> --repo <owner>/<repo> --timeout 2400.
  2. Let a reviewer other than Copilot post an unresolved thread on the head while the checks finish.
  3. wait keeps polling rather than exiting, with nothing pending except the threads.

Expected

wait on an attested head exits with a distinct code when an unresolved thread lands on the head, or when every check has completed and the only thing holding the merge is unresolved threads. It names the threads' reviewers in its status line, so the driver disposes of them rather than waiting out the timeout.

Notes

The driver also lost visibility by piping wait through tail, which prints nothing until exit. That part was a usage mistake rather than a script defect. The missing outcome above is a script defect.

Activity

  1. added
    bug
    on Oct 30, 2026
  2. added 2 commits that reference this issue on Oct 31, 2026
    125d6bf
    96475c1
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions