Skip to content

ci(pr-review): launch review agents in the foreground - #564

Open
RyanCodrai wants to merge 1 commit into
mainfrom
ci/review-foreground-agents
Open

RyanCodrai wants to merge 1 commit into
mainfrom
ci/review-foreground-agents

Conversation

@RyanCodrai

Copy link
Copy Markdown
Owner

Unblocks the review gate, which has stopped producing verdicts.

What happens. The review orchestrator launches its parallel bug-scan agents with run_in_background: true, gets "Async agent launched" back, schedules a 20-minute wakeup ("fallback while waiting on review agents") and ends its turn. The action runs one SDK turn, so the wakeup never fires and the agents never report: no REVIEW_VERDICT line, and the gate reads "the review stated no verdict". Three runs in a row on #563 ended this way (runs 37392243274, 37393324699), each after ~50 s and 11–14 turns; the execution logs show the run_in_background: true inputs and the ScheduleWakeup call.

Why #506 doesn't cover it. #506 told the orchestrator to keep waiting inside its turn — but an agent already launched in the background has nothing to block on.

The change. One sentence in --append-system-prompt: launch every agent with run_in_background: false; several calls in one message still run in parallel and all return within the same turn. Plus a comment recording why.

The workflow runs from main, so this takes effect for /review on any PR once merged — #563 needs it to get a verdict.

🤖 Generated with Claude Code

https://claude.ai/code/session_01C1gifr9K4ThHHxjoNctZTL

#506 told the orchestrator to keep waiting inside its turn on the
agents it launches. It now launches the parallel bug scans with
run_in_background: true, gets 'Async agent launched' back, schedules a
wakeup and ends its turn — and a one-turn SDK run never wakes, so no
REVIEW_VERDICT line is written. Three runs in a row on #563 ended
'stated no verdict' this way (37392243274, 37393324699, and one
before), each after ~50 s and 11-14 turns.

The prompt now says how: launch every agent with run_in_background:
false, several in one message to run them in parallel, all of which
return within the same turn.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01C1gifr9K4ThHHxjoNctZTL
@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

✅ Passed review — No defects found in the workflow prompt change; YAML and quoting are intact.. (run)

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant