fix(checkpoint): fail closed on pause queries

This commit is contained in:
ZacharyZhang-NY committed 2026-04-23 18:58:06 -04:00
1 parent a99bcb97c6
commit f8a90f4402
3 files changed
+32 -6

No files matched your search

+1 -1
View File
@@ -157,7 +157,7 @@ export function createCheckpointEngine(deps: CheckpointDeps) {
return db.core.approvals.hasPendingReviewApprovalForAgent(companyId, agentId);
} catch (err) {
logger.error(`[checkpoint] shouldPauseHeartbeat failed: ${err instanceof Error ? err.message : String(err)}`);
return false;
return true;
}
},