This commit is contained in:
ZacharyZhang-NY committed 2026-04-17 14:03:56 -04:00
1 parent 806200b3d1
commit 5547c29491
216 files changed
+5043 -3352

No files matched your search

+6 -1
View File
@@ -70,7 +70,7 @@ function createHeartbeatTask(
status: string,
agentName = "Agent",
): string {
return db.saveTask({
const id = db.saveTask({
companyId,
title: `[Heartbeat] ${agentName} — Check for work`,
description: `Automated heartbeat run for ${agentName}.`,
@@ -78,6 +78,11 @@ function createHeartbeatTask(
status,
priority: "medium",
});
// saveTask is a generic user-task write path and does not set the
// heartbeat flag. Flip it directly so this fixture matches what
// acquireHeartbeatTask would produce at runtime.
db.queryAll("UPDATE tasks SET is_heartbeat = 1 WHERE id = ?", id);
return id;
}
// ---------------------------------------------------------------------------