feat: enhance global config handling and component resolution in plugin runtime

This commit is contained in:
DrSmoothl
2026-03-23 23:05:05 +08:00
parent 1f02171a63
commit a61b124c93
4 changed files with 75 additions and 30 deletions

View File

@@ -543,9 +543,9 @@ class PluginRuntimeManager(
normalized_scopes = self._normalize_config_reload_scopes(changed_scopes)
if "bot" in normalized_scopes:
await self._broadcast_config_reload("bot", config_manager.get_global_config().model_dump())
await self._broadcast_config_reload("bot", config_manager.get_global_config().model_dump(mode="json"))
if "model" in normalized_scopes:
await self._broadcast_config_reload("model", config_manager.get_model_config().model_dump())
await self._broadcast_config_reload("model", config_manager.get_model_config().model_dump(mode="json"))
# ─── 事件桥接 ──────────────────────────────────────────────