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
Exit pr_review.py wait When Unresolved Threads Land on an Attested Head #3671
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
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.
Let a reviewer other than Copilot post an unresolved thread on the head while the checks finish.
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
Exit pr_review.py wait When Unresolved Threads Land on an Attested He…
Walk a Cut Thread Page Once per Poll Read (#3682)