From 69d07dba84411db33bf1f5191a69f80e5069c6ea Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Mon, 20 Jul 2026 22:58:49 +0300 Subject: fix: make plugin state global across sessions refs #1174 --- src/app/api/plugins/runtime.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/app/api/plugins/runtime.rs') diff --git a/src/app/api/plugins/runtime.rs b/src/app/api/plugins/runtime.rs index 71004fe5..9106886c 100644 --- a/src/app/api/plugins/runtime.rs +++ b/src/app/api/plugins/runtime.rs @@ -220,6 +220,10 @@ impl App { if !crate::api::schema::PLUGIN_HOOK_EVENT_KINDS.contains(&event.event) { return; } + if let Err(err) = self.refresh_installed_plugins() { + tracing::warn!(err = %err, "failed to refresh plugin registry before event hooks"); + return; + } let plugins = self .state .installed_plugins -- cgit v1.2.3