diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-07-20 22:58:49 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-07-20 23:04:15 +0300 |
| commit | 69d07dba84411db33bf1f5191a69f80e5069c6ea (patch) | |
| tree | e954eefb66346a37cfff8f8d68aaf91d74e18c3e /src/app/api/plugins/runtime.rs | |
| parent | d956a6b56dabac9690260e50a9e03372510877d4 (diff) | |
fix: make plugin state global across sessions
refs #1174
Diffstat (limited to 'src/app/api/plugins/runtime.rs')
| -rw-r--r-- | src/app/api/plugins/runtime.rs | 4 |
1 files changed, 4 insertions, 0 deletions
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 |
