From 136d3049b79ca931eb2dc13c99a55174a379e2b3 Mon Sep 17 00:00:00 2001 From: kumarabhirup Date: Thu, 5 Mar 2026 13:57:38 -0800 Subject: [PATCH] feat: add configuration for plugin load paths in OpenClaw Enhance the installBundledPlugins function to set the plugins.load.paths configuration for posthog-analytics using OpenClaw. This addition allows for dynamic loading of plugin paths, improving plugin management during the bootstrap process. --- src/cli/bootstrap-external.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/cli/bootstrap-external.ts b/src/cli/bootstrap-external.ts index 7908e603d6f..e05c2ecef13 100644 --- a/src/cli/bootstrap-external.ts +++ b/src/cli/bootstrap-external.ts @@ -411,6 +411,17 @@ async function installBundledPlugins(params: { errorMessage: "Failed to set plugins.allow for posthog-analytics.", }); + await runOpenClawOrThrow({ + openclawCommand: params.openclawCommand, + args: [ + "--profile", params.profile, + "config", "set", + "plugins.load.paths", JSON.stringify([pluginDest]), + ], + timeoutMs: 30_000, + errorMessage: "Failed to set plugins.load.paths for posthog-analytics.", + }); + if (params.posthogKey) { await runOpenClawOrThrow({ openclawCommand: params.openclawCommand,