agent-orchestrator icon indicating copy to clipboard operation
agent-orchestrator copied to clipboard

[Bug]: PR promoted to Ready on the board while its auto-review run failed (review = none)

Open grgrwlkr opened this issue 2 months ago • 1 comments

What went wrong?

A PR whose auto-review run failed to launch is shown in the Ready column of the board. The card says "Mergeable", review state is none, and nothing on the card says a review was attempted and failed.

Steps to reproduce

  1. Project with autoReview: true and a claude-code reviewer.
  2. Make the reviewer launch fail (easiest: reboot the Mac so no tmux server exists on the legacy default socket — see #4776 and the comment there for the reviewer-launch variant).
  3. Worker opens a PR, claims it, CI goes green.

Expected behavior

Ready should require the review to have completed with approved (or the project to have autoReview: false). A failed review_run should keep the card in Validating / In review with a visible "review failed: " state and a retry action, instead of promoting it.

Actual behavior

review_run.status = failed, ao review ls → needs_review, ao session get → prs[0].review = "none", and the card sits in Ready as "Mergeable". The only way to notice is to query the DB or run ao review ls per session.

AO version

0.13.0 (desktop), daemon ao version → dev

Environment

macOS 27.0 arm64, tmux 3.7c (Homebrew)

Before submitting

  • [x] I searched existing issues for duplicates
  • [x] I removed secrets / tokens from logs and screenshots

grgrwlkr avatar Sep 14 '26 21:09 grgrwlkr

Fixed by #5668 on main: a PR with a failed auto-review stays in Validating and shows Review failed. Reopen if it recurs.

Rishet11 avatar Oct 25 '26 16:10 Rishet11