Skip to content

The open alternative to Salesforce, designed for AI.

Move Claude workflow concurrency to job level so PR chatter can't cancel queued runs (#21498)

Félix Malfait79f7c96939b7
diff --git a/.github/workflows/claude.yml b/.github/workflows/claude.yml
index b92a1752273..835e2ec3b75 100644
--- a/.github/workflows/claude.yml
+++ b/.github/workflows/claude.yml
@@ -14,10 +14,6 @@ on:
permissions: {}
-concurrency:
- group: ${{ github.workflow }}-${{ github.event.issue.number || github.event.pull_request.number || github.event.client_payload.issue_number }}
- cancel-in-progress: false
-
jobs:
claude:
if: |
@@ -45,6 +41,11 @@ jobs:
(contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')) &&
contains(fromJson('["OWNER","MEMBER","COLLABORATOR"]'), github.event.issue.author_association)
)
+ # Job-level (not workflow-level) concurrency: skipped jobs never enter the
+ # group, so PR chatter without @claude can't evict a queued Claude run.
+ concurrency:
+ group: claude-code-${{ github.event.issue.number || github.event.pull_request.number }}
+ cancel-in-progress: false
runs-on: ubuntu-latest
timeout-minutes: 60
permissions:
@@ -118,6 +119,9 @@ jobs:
claude-cross-repo:
if: github.event_name == 'repository_dispatch'
+ concurrency:
+ group: claude-cross-repo-${{ github.event.client_payload.repo_full_name }}-${{ github.event.client_payload.issue_number }}
+ cancel-in-progress: false
runs-on: ubuntu-latest
timeout-minutes: 60
permissions: