summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhathach <[email protected]>2026-06-11 19:41:51 +0700
committerhathach <[email protected]>2026-06-11 19:41:51 +0700
commitc9cfd829f6a793b227f4e52df29337f2a8530ce7 (patch)
treee3b4cb972702954b082275a273bd7cd8f8384f38
parent0244a4f12e019406a4b73c75cd96f8efa096bbdc (diff)
ci(claude-review): raise --max-turns 20 -> 50
The Claude Code Review action runs /code-review:code-review with a hard --max-turns cap. On large PRs (e.g. #3636 "add stm32c5 support", 29 files / +1689), the agent exhausts 20 turns exploring the diff before it can produce and post its review, so the SDK returns an error and the claude-review check fails red with: Reached maximum number of turns (20) Raise the cap to 50 so port-sized PRs complete and post their review. Cost scales with tokens, not the cap: a finished review pays the same whether the ceiling is 25 or 50 — the cap only bites when the agent would otherwise be force-stopped mid-run. Co-Authored-By: Claude Opus 4.8 <[email protected]>
-rw-r--r--.github/workflows/claude-code-review.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml
index 71c1cb8ab..94001dd8a 100644
--- a/.github/workflows/claude-code-review.yml
+++ b/.github/workflows/claude-code-review.yml
@@ -53,5 +53,5 @@ jobs:
# TEMPORARY: expose the full Claude transcript in the Actions log for
# debugging. Revert to remove once done.
show_full_output: true
- claude_args: '--max-turns 20'
+ claude_args: '--max-turns 50'
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md