fix(plugin): skip non-V4 plugins in broadcast_notification

PluginManager::broadcast_notification was fanning out host notifications to every loaded plugin. Only V4 plugin processes can receive host->plugin notifications; V2/V3 plugins correctly rejected them with notify_plugin requires V4 protocol.

Add PluginProcess::is_v4() and skip non-V4 plugins in broadcast_notification so V4 document snapshot notifications only go to V4-capable plugins. Fixes repeated console errors for Example, Land Survey and V2 Compat.
This commit is contained in:
Sebastian committed 2026-08-18 12:12:42 +02:00
1 parent 36e0e40b36
commit fcd4a278e4
2 files changed
+14

No files matched your search

@@ -91,6 +91,15 @@ impl PluginManager {
if !p.process.is_alive() {
continue;
}
if !p.process.is_v4() {
if crate::process::verbose() {
eprintln!(
"[plugin] skipping notification for {} (not V4)",
p.process.id()
);
}
continue;
}
if let Err(e) = p.process.notify_plugin(command_id, notification.clone()) {
eprintln!(
"[plugin] broadcast_notification failed for {}: {e}",