From 62257194c6f533b35642d452791d3db998129534 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Tue, 17 Nov 2026 01:04:52 +0100 Subject: [PATCH] :paperclip: Log shape counts and only text content in the replay debug The WASM replay's debug log read every shape's content as text, which a path's content is not; it reads only texts now and logs how many shapes the page ends with. Harness only; the benchmark is not run. AI-assisted-by: claude-opus-5-5 --- frontend/test/frontend_tests/wasm_replay.cljs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/test/frontend_tests/wasm_replay.cljs b/frontend/test/frontend_tests/wasm_replay.cljs index 8acf18b39e..4fa8e7c207 100644 --- a/frontend/test/frontend_tests/wasm_replay.cljs +++ b/frontend/test/frontend_tests/wasm_replay.cljs @@ -150,6 +150,7 @@ [] (when (query-param "debug") (let [objects (dsh/lookup-page-objects @st/state)] + (js/console.log "WASM-REPLAY shapes" (count objects)) (doseq [shape (sort-by :name (vals objects))] (js/console.log "WASM-REPLAY shape" (pr-str [(:name shape) (:type shape) (:id shape) @@ -157,8 +158,10 @@ (some-> (:selrect shape) (select-keys [:x :y :width :height])) (:transform shape) (:touched shape) (:shape-ref shape) (:layout shape) - (some-> (:content shape) txt/content->text) - (some->> (:content shape) txt/node-seq (keep :font-weight) distinct)])))))) + (when (= :text (:type shape)) + (some-> (:content shape) txt/content->text)) + (when (= :text (:type shape)) + (some->> (:content shape) txt/node-seq (keep :font-weight) distinct))])))))) (defn- ^:async replay "Replay `program` with the backend and timers mocked, as the frontend