Merge pull request #72 from STRML/fix/heartbeat-pending-approval

fix: skip pending_approval agents in heartbeat tickTimers
This commit is contained in:
Dotta 2026-03-05 11:06:35 -06:00 committed by GitHub
commit bc765b0867
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2207,7 +2207,7 @@ export function heartbeatService(db: Db) {
let skipped = 0;
for (const agent of allAgents) {
if (agent.status === "paused" || agent.status === "terminated") continue;
if (agent.status === "paused" || agent.status === "terminated" || agent.status === "pending_approval") continue;
const policy = parseHeartbeatPolicy(agent);
if (!policy.enabled || policy.intervalSec <= 0) continue;