Skip to content

Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.

ci: cancel superseded PR runs with concurrency groups

Artemc84ef4cfcb47
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 3de1fa824..b6252f32a 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -10,6 +10,12 @@ on:
push:
branches: [main]
+# Only PR runs may be cancelled: a cancelled merge_group run strands every PR queued
+# behind it, and a cancelled push-to-main run loses that commit's CI signal.
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
permissions:
contents: read
diff --git a/.github/workflows/security.yml b/.github/workflows/security.yml
index 0ebd848db..25e72c66f 100644
--- a/.github/workflows/security.yml
+++ b/.github/workflows/security.yml
@@ -16,6 +16,12 @@ on:
# Weekly re-scan so a newly-disclosed CVE in an unchanged dependency still surfaces.
- cron: '17 4 * * 1'
+# Only PR runs may be cancelled: a cancelled merge_group run strands every PR queued
+# behind it, and a cancelled push-to-main run loses that commit's CodeQL baseline.
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
# Least privilege: only CodeQL needs security-events:write to upload results.
permissions:
contents: read