From ba7c60d64de04f603b75f3daf3449ad107fd880a Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 7 Oct 2026 23:11:43 +0000 Subject: [PATCH] ci: keep Claude review subagents in the foreground In CI the run ends when Claude's turn ends. The code-review plugin's first step was launched as a background subagent, so Claude ended its turn waiting on it and the job exited before any review happened. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Pe7k1XG8178GSmRsq1KkAR --- .github/workflows/claude-code-review.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml index 1e9b987..a62af98 100644 --- a/.github/workflows/claude-code-review.yml +++ b/.github/workflows/claude-code-review.yml @@ -45,4 +45,9 @@ jobs: plugin_marketplaces: 'https://github.com/anthropics/claude-code.git' plugins: 'code-review@claude-code-plugins' show_full_output: ${{ inputs.show_full_output == true }} - prompt: '/code-review:code-review ${{ github.repository }}/pull/${{ github.event.pull_request.number || inputs.pr_number }} --comment' + # CI ends the run when Claude's turn ends, so a subagent left running + # in the background is killed before it reports back + prompt: | + /code-review:code-review ${{ github.repository }}/pull/${{ github.event.pull_request.number || inputs.pr_number }} --comment + + This runs non-interactively: launch every subagent in the foreground (run_in_background: false) and wait for its result. Do not end your turn until the review is posted.