From 29a1b18f0871cabf23684a288bd8da8e51ed68ef Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Sat, 14 Nov 2026 03:22:17 +0100 Subject: [PATCH] :paperclip: Give pasted shapes fill and stroke lists in the harness paste The clipboard's paste maps over the fills and strokes of every shape it adds, so a shape without them, such as a group, gets empty lists. The harness paste left them out, and the frontend replay of a generated paste differed from the JVM run by them. Harness only; the benchmark is not run. AI-assisted-by: claude-opus-5-5 --- .../app/common/test_helpers/composable/comp/nodes.cljc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/common/src/app/common/test_helpers/composable/comp/nodes.cljc b/common/src/app/common/test_helpers/composable/comp/nodes.cljc index 44c10445ff..836baa9c42 100644 --- a/common/src/app/common/test_helpers/composable/comp/nodes.cljc +++ b/common/src/app/common/test_helpers/composable/comp/nodes.cljc @@ -1384,7 +1384,14 @@ (gpt/point 0 0) libs (:data the-file) - (:id the-file))) + (:id the-file)) + ;; as the clipboard's paste, each added shape has fill and stroke lists + (pcb/amend-changes (fn [change] + (cond-> change + (= :add-obj (:type change)) + (update :obj #(-> % + (update :fills (fnil vec [])) + (update :strokes (fnil vec [])))))))) file' (thf/apply-changes the-file changes :validate? false)] (-> situation (tm/with-file file')