Skip to content

The open-source app everyone uses to manage agents at work

fix(server): use run.id for activity_log in heartbeat invoke/resume (#3424)

tmartin21133b16ac38040d
diff --git a/server/src/routes/agents.ts b/server/src/routes/agents.ts
index 659491cac5..685fe3900c 100644
--- a/server/src/routes/agents.ts
+++ b/server/src/routes/agents.ts
@@ -3329,7 +3329,7 @@ export function agentRoutes(
actorType: actor.actorType,
actorId: actor.actorId,
agentId: actor.agentId,
- runId: actor.runId,
+ runId: run.id,
action: "heartbeat.invoked",
entityType: "heartbeat_run",
entityId: run.id,
@@ -3420,7 +3420,7 @@ export function agentRoutes(
actorType: actor.actorType,
actorId: actor.actorId,
agentId: actor.agentId,
- runId: actor.runId,
+ runId: run.id,
action: "heartbeat.invoked",
entityType: "heartbeat_run",
entityId: run.id,