fix(canvas): 画布 - 防止旧内容覆盖并支持版本历史恢复

This commit is contained in:
kinoko committed 2026-09-17 18:40:42 +08:00
1 parent b6bae4f957
commit 35ebed3097
69 files changed
+3575 -294

No files matched your search

+1 -1
View File
@@ -520,7 +520,7 @@ func saveCloudAgentDocument(repo *repository.Repository, canvas *model.CanvasPro
}
before := canvas.PayloadJSON
canvas.PayloadJSON = string(raw)
return repo.CompareSaveCreationCanvas(canvas, before)
return saveCreationCanvasWithHistory(repo, canvas, before)
}
// Called inside the same transaction as the task, charge reservation and Agent checkpoint.