feat(FN-5060): complete Step 5 — wire engine and mission dedup guard

This commit is contained in:
Fusion (runfusion.ai)
2026-05-18 17:36:19 -07:00
committed by gsxdsm
parent 6365fceee4
commit a54496f45d
5 changed files with 154 additions and 34 deletions

View File

@@ -1876,7 +1876,7 @@ export class TriageProcessor {
parentTask = undefined;
}
const newTask = await createAgentTask(store, {
const { task: newTask, wasDuplicate } = await createAgentTask(store, {
title: params.title,
description: params.description,
dependencies: validDeps,
@@ -1900,7 +1900,7 @@ export class TriageProcessor {
content: [
{
type: "text" as const,
text: `Created child task ${newTask.id}: ${params.title || params.description.slice(0, 60)}`,
text: `${wasDuplicate ? "Linked existing child task" : "Created child task"} ${newTask.id}: ${params.title || params.description.slice(0, 60)}`,
},
],
details: { taskId: newTask.id },