Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

fix(ci): stop unrelated labels from cancelling in-flight AI reviews (#4697)

LearningCircuite0c115a278da
diff --git a/.github/workflows/ai-code-reviewer.yml b/.github/workflows/ai-code-reviewer.yml
index a38b9942fb..550d5a6a30 100644
--- a/.github/workflows/ai-code-reviewer.yml
+++ b/.github/workflows/ai-code-reviewer.yml
@@ -9,8 +9,19 @@ on:
# rapid pushes. Keyed on the PR number so runs for *different* PRs never cancel
# each other — that repo-wide cancellation was the problem in the earlier
# attempt (#3554, reverted #3599), not per-PR cancellation.
+#
+# The labeled trigger fires for *every* label added to the PR, but the job's
+# `if` only proceeds when the label is ai_code_review. Without the run_id
+# suffix below, a skip-only labeled event would still enter this group, cancel
+# a real in-flight review (opened/synchronize), and then skip itself — leaving
+# the PR with no review at all. Routing those into a unique group keyed on
+# run_id means they cancel nothing; the `if` discards them quietly.
concurrency:
- group: ai-code-review-${{ github.event.pull_request.number }}
+ group: >-
+ ai-code-review-${{ github.event.pull_request.number }}${{
+ (github.event.action == 'labeled' && github.event.label.name != 'ai_code_review')
+ && format('-skip-{0}', github.run_id) || ''
+ }}
cancel-in-progress: true
permissions: {} # Minimal top-level for OSSF Scorecard Token-Permissions