mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 16:40:42 +00:00
feat(plugins): refresh registry after plugin mutations
This commit is contained in:
@@ -57,6 +57,7 @@ import {
|
||||
terminateStaleGatewayPids,
|
||||
waitForGatewayHealthyRestart,
|
||||
} from "../daemon-cli/restart-health.js";
|
||||
import { refreshPluginRegistryAfterConfigMutation } from "../plugins-registry-refresh.js";
|
||||
import { createUpdateProgress, printResult } from "./progress.js";
|
||||
import { prepareRestartScript, runRestartScript } from "./restart-helper.js";
|
||||
import {
|
||||
@@ -619,6 +620,12 @@ async function updatePluginsAfterCoreUpdate(params: {
|
||||
nextConfig: pluginConfig,
|
||||
baseHash: params.configSnapshot.hash,
|
||||
});
|
||||
await refreshPluginRegistryAfterConfigMutation({
|
||||
config: pluginConfig,
|
||||
reason: "source-changed",
|
||||
workspaceDir: params.root,
|
||||
logger: pluginLogger,
|
||||
});
|
||||
}
|
||||
|
||||
if (params.opts.json) {
|
||||
|
||||
Reference in New Issue
Block a user