Fix concurrency bug in Claude Code review workflow#7732
Merged
Conversation
Move the concurrency group from workflow-level to job-level so that unrelated PR comments (which trigger `issue_comment` but fail the job's `if` filter) don't cancel an in-progress review. A skipped job never enters the concurrency group, preventing false cancellations.
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
Contributor
Greptile SummaryThis PR fixes a concurrency race condition in the Claude Code review workflow by moving the
Confidence Score: 5/5
Important Files Changed
Reviews (1): Last reviewed commit: "Fix concurrency bug in Claude Code revie..." | Re-trigger Greptile |
gilluminate
approved these changes
Mar 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description Of Changes
Move the
concurrencygroup from workflow-level to job-level in the Claude Code review workflow. This fixes a race condition where unrelated PR comments (that don't contain/code-review) would cancel an in-progress review.The bug: Any
issue_commentevent on a PR triggers the workflow, which enters the concurrency group and cancels the running review job. The new run then evaluates the job'sifcondition, finds the comment doesn't match, and skips — leaving no review running.The fix: A job whose
ifevaluates tofalseis skipped entirely and never enters the concurrency group, so it can't cancel anything. Movingconcurrencyfrom workflow-level to job-level is all that's needed.iftruefalse/code-reviewcommenttrueCode Changes
.github/workflows/claude-code-review.yml- Moveconcurrencyblock from workflow-level into theclaude-reviewjobSteps to Confirm
/code-reviewcomment and verify it does cancel and restart the reviewPre-Merge Checklist
CHANGELOG.mdupdated