refactor(canvas): 预演台 - 重构工作台与场景交互链路

This commit is contained in:
ddcat666 committed 2026-10-06 09:11:15 +08:00
1 parent 1dfc8ce7ac
commit 112916587c
128 files changed
+42372 -5011

No files matched your search

+1 -1
View File
@@ -522,7 +522,7 @@ func TestCloudAgentToolLoopPersistsApprovalAndAppliesCanvasWrite(t *testing.T) {
}
callArguments, err := json.Marshal(map[string]any{
"snapshotHash": cloudAgentCanvasHash(doc),
"ops": []map[string]any{{"type": "add_node", "id": "agent-note", "nodeType": "text", "title": "Agent note", "content": "由 Agent 写入", "x": 24, "y": 48}},
"ops": []map[string]any{{"type": "add_node", "id": "agent-note", "nodeType": "text", "title": "Agent note", "content": "由 Agent 写入", "x": json.RawMessage("24.0"), "y": json.RawMessage("48.0")}},
})
if err != nil {
t.Fatal(err)