diff --git a/.github/workflows/agents-auto-pilot.yml b/.github/workflows/agents-auto-pilot.yml index 86218a2e6..6b7826987 100644 --- a/.github/workflows/agents-auto-pilot.yml +++ b/.github/workflows/agents-auto-pilot.yml @@ -1964,7 +1964,8 @@ jobs: }) ); const recentRuns = runs.workflow_runs.filter( - r => new Date(r.created_at) >= dispatchedAt + r => new Date(r.created_at) >= dispatchedAt && + r.event === 'workflow_dispatch' ); const alive = recentRuns.find( r => r.status === 'queued' || r.status === 'in_progress' @@ -2462,7 +2463,8 @@ jobs: ); const cutoff = new Date(Date.now() - 30 * 60 * 1000); const recentRuns = runs.workflow_runs.filter( - r => new Date(r.created_at) >= cutoff + r => new Date(r.created_at) >= cutoff && + r.event === 'workflow_dispatch' ); const alive = recentRuns.find( r => r.status === 'queued' || r.status === 'in_progress' diff --git a/.github/workflows/agents-keepalive-loop.yml b/.github/workflows/agents-keepalive-loop.yml index b7cdae91f..629e598f0 100644 --- a/.github/workflows/agents-keepalive-loop.yml +++ b/.github/workflows/agents-keepalive-loop.yml @@ -859,7 +859,6 @@ jobs: - evaluate - run-codex - run-claude - - progress-review # Run if PR exists, handle skipped/failed agent jobs gracefully # run-codex will be skipped when action != run/fix/conflict, which is expected if: | diff --git a/templates/consumer-repo/.github/workflows/agents-auto-pilot.yml b/templates/consumer-repo/.github/workflows/agents-auto-pilot.yml index 7c82d20cb..13357bb87 100644 --- a/templates/consumer-repo/.github/workflows/agents-auto-pilot.yml +++ b/templates/consumer-repo/.github/workflows/agents-auto-pilot.yml @@ -1934,7 +1934,8 @@ jobs: }) ); const recentRuns = runs.workflow_runs.filter( - r => new Date(r.created_at) >= dispatchedAt + r => new Date(r.created_at) >= dispatchedAt && + r.event === 'workflow_dispatch' ); const alive = recentRuns.find( r => r.status === 'queued' || r.status === 'in_progress' @@ -2386,7 +2387,8 @@ jobs: ); const cutoff = new Date(Date.now() - 30 * 60 * 1000); const recentRuns = runs.workflow_runs.filter( - r => new Date(r.created_at) >= cutoff + r => new Date(r.created_at) >= cutoff && + r.event === 'workflow_dispatch' ); const alive = recentRuns.find( r => r.status === 'queued' || r.status === 'in_progress' diff --git a/templates/consumer-repo/.github/workflows/agents-keepalive-loop.yml b/templates/consumer-repo/.github/workflows/agents-keepalive-loop.yml index b7cdae91f..629e598f0 100644 --- a/templates/consumer-repo/.github/workflows/agents-keepalive-loop.yml +++ b/templates/consumer-repo/.github/workflows/agents-keepalive-loop.yml @@ -859,7 +859,6 @@ jobs: - evaluate - run-codex - run-claude - - progress-review # Run if PR exists, handle skipped/failed agent jobs gracefully # run-codex will be skipped when action != run/fix/conflict, which is expected if: |