mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-27 18:01:46 +00:00
fix(plugins): preserve live hook registry during gateway runs
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import type { OpenClawConfig } from "../config/config.js";
|
||||
import { loadOpenClawPlugins } from "../plugins/loader.js";
|
||||
import { getActivePluginRegistryKey } from "../plugins/runtime.js";
|
||||
import { resolveUserPath } from "../utils.js";
|
||||
|
||||
export function ensureRuntimePluginsLoaded(params: {
|
||||
@@ -7,6 +8,10 @@ export function ensureRuntimePluginsLoaded(params: {
|
||||
workspaceDir?: string | null;
|
||||
allowGatewaySubagentBinding?: boolean;
|
||||
}): void {
|
||||
if (getActivePluginRegistryKey()) {
|
||||
return;
|
||||
}
|
||||
|
||||
const workspaceDir =
|
||||
typeof params.workspaceDir === "string" && params.workspaceDir.trim()
|
||||
? resolveUserPath(params.workspaceDir)
|
||||
|
||||
Reference in New Issue
Block a user