fix(FN-4249): align running-agent reconciliation with taskId linkage

Fusion-Task-Id: FN-4249
Fusion-Task-Lineage: e0052fae-38e1-4d66-8240-43d26f5790bb
This commit is contained in:
Fusion
2026-05-12 22:34:30 -07:00
committed by gsxdsm
parent 53aa1e90f1
commit b536d92d9c
4 changed files with 12 additions and 12 deletions

View File

@@ -876,13 +876,13 @@ describe("SelfHealingManager", () => {
{
id: "agent-recover",
state: "running",
executionTaskId: "FN-TODO",
taskId: "FN-TODO",
updatedAt: new Date(now - 120_000).toISOString(),
} as Agent,
{
id: "agent-keep",
state: "running",
executionTaskId: "FN-IP",
taskId: "FN-IP",
updatedAt: new Date(now - 120_000).toISOString(),
} as Agent,
];
@@ -902,7 +902,7 @@ describe("SelfHealingManager", () => {
}),
syncExecutionTaskLink: vi.fn(async (agentId: string, taskId?: string) => {
const agent = agents.find((candidate) => candidate.id === agentId);
if (agent) agent.executionTaskId = taskId;
if (agent) agent.taskId = taskId;
}),
} as unknown as AgentStore;