fix(canvas): 画布 - 防止旧内容覆盖并支持版本历史恢复
This commit is contained in:
1 parent
b6bae4f957
commit
35ebed3097
69 files changed
+3575
-294
No files matched your search
@@ -296,7 +296,7 @@ func TestCloudAgentStoryboardRejectsUnsafeOrStaleMutations(t *testing.T) {
|
||||
stored, _ := s.repo.CanvasProjectForUser("user", canvas.ID)
|
||||
before := stored.PayloadJSON
|
||||
stored.PayloadJSON = string(raw)
|
||||
if err := s.repo.CompareSaveCreationCanvas(stored, before); err != nil {
|
||||
if err := saveCreationCanvasWithHistory(s.repo, stored, before); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
wrongType := cloudAgentStoryboardCall(t, "canvas_edit_storyboard", "wrong-type", map[string]any{
|
||||
|
||||
Reference in new issue
Block a user