feat(web): sync workflow docs from server and persist task artifact in chat

Pass doc_id on task runs, merge server deliverable state by task_key,
fetch controlled document content when opening non-template docs, and
map metadata.artifact after refresh.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
WeiCHEN
2026-09-13 02:50:22 +00:00
committed by weichen
co-authored by Cursor
parent 68765023a2
commit 9d40a91f9d
9 changed files with 367 additions and 3 deletions
+1
View File
@@ -63,6 +63,7 @@ export function buildTaskRequest(task: TaskRunContext): Record<string, unknown>
if (task.materials && task.materials.length > 0) {
body.materials = task.materials;
}
if (task.docId) body.doc_id = task.docId;
return body;
}