From 387f0cb5dce973b761fc2de0b815ea7c4a5a6586 Mon Sep 17 00:00:00 2001 From: Eva Marco Date: Wed, 30 Sep 2026 08:56:19 +0200 Subject: [PATCH] :bug: Skip shape validation in the page index worker The page index worker applies the same changes to its own copy of the pages, which has no file id and no components. :validate-shapes changes then always failed there, so the worker logged "error updating page index" and stopped updating the snap and selection indexes of that page after any validated change. Drop :validate-shapes changes before applying them in the worker. AI-assisted-by: claude-opus-5-5 Co-Authored-By: Claude Opus 5.5 --- frontend/src/app/worker/index.cljs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/app/worker/index.cljs b/frontend/src/app/worker/index.cljs index 1117440563..cf28759971 100644 --- a/frontend/src/app/worker/index.cljs +++ b/frontend/src/app/worker/index.cljs @@ -40,6 +40,9 @@ (let [tpoint (ct/tpoint-ms)] (try (let [old-page (dm/get-in @state [:pages-index page-id]) + ;; The index only holds pages, without the file id nor its + ;; components, so shape validation can't run here + changes (remove #(= :validate-shapes (:type %)) changes) new-page (-> state (swap! ch/process-changes changes false) (dm/get-in [:pages-index page-id]))