From 2a3140a814ed5a55af49672ba355783c948f0179 Mon Sep 17 00:00:00 2001 From: liuhao1024 Date: Tue, 12 May 2026 21:57:34 +0800 Subject: [PATCH] fix(dashboard): rescan plugins when cached directory is removed --- hermes_cli/web_server.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hermes_cli/web_server.py b/hermes_cli/web_server.py index fb5f7ca12d3..3f0eae0aebc 100644 --- a/hermes_cli/web_server.py +++ b/hermes_cli/web_server.py @@ -4021,6 +4021,9 @@ def _get_dashboard_plugins(force_rescan: bool = False) -> list: global _dashboard_plugins_cache if _dashboard_plugins_cache is None or force_rescan: _dashboard_plugins_cache = _discover_dashboard_plugins() + elif _dashboard_plugins_cache: + if any(not Path(p["_dir"]).is_dir() for p in _dashboard_plugins_cache): + _dashboard_plugins_cache = _discover_dashboard_plugins() return _dashboard_plugins_cache