feat(FN-4899): complete Step 2 — support source metadata patches

Fusion-Task-Id: FN-4899
Fusion-Task-Lineage: 2ae24667-6635-4268-a620-d6012266d8f2
This commit is contained in:
Fusion (runfusion.ai)
2026-05-17 15:52:29 -07:00
committed by gsxdsm
parent 4b01e8e66e
commit 9eb10fca7e
2 changed files with 99 additions and 0 deletions

View File

@@ -4510,6 +4510,14 @@ export class TaskStore extends EventEmitter<TaskStoreEvents> {
}
}
if (updates.description !== undefined) task.description = updates.description;
if (updates.sourceMetadataPatch === null) {
task.sourceMetadata = undefined;
} else if (updates.sourceMetadataPatch !== undefined) {
task.sourceMetadata = {
...(task.sourceMetadata ?? {}),
...updates.sourceMetadataPatch,
};
}
if (updates.priority === null) {
task.priority = normalizeTaskPriority(undefined);
} else if (updates.priority !== undefined) {