From f4001b88e2c5bc4d038994846d13e8e316ac53fb Mon Sep 17 00:00:00 2001 From: Hakan Seven Date: Sun, 11 Oct 2026 23:48:40 +0300 Subject: [PATCH] fix(automation): selection events are native-only like their caller Co-Authored-By: Claude Opus 5.5 --- src/app/control/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/control/mod.rs b/src/app/control/mod.rs index c1c682c45..e1deef2ac 100644 --- a/src/app/control/mod.rs +++ b/src/app/control/mod.rs @@ -436,6 +436,7 @@ impl OpenCADStudio { /// Mirror a real selection change into the automation event stream. The /// plugin host already publishes the V4 selection event; automation clients /// need the same signal instead of polling `state`. + #[cfg(not(target_arch = "wasm32"))] pub(super) fn control_record_selection_event(&mut self, handles: &[codec::Handle]) { let (document_id, revision) = { let tab = &self.tabs[self.active_tab];