mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 10:50:43 +00:00
fix(plugins): avoid bundled install load path aliases
This commit is contained in:
@@ -110,8 +110,6 @@ async function installBundledPluginSource(params: {
|
||||
bundledSource: BundledPluginSource;
|
||||
warning: string;
|
||||
}) {
|
||||
const existing = params.snapshot.config.plugins?.load?.paths ?? [];
|
||||
const mergedPaths = Array.from(new Set([...existing, params.bundledSource.localPath]));
|
||||
const existingEntry = params.snapshot.config.plugins?.entries?.[params.bundledSource.pluginId];
|
||||
const shouldEnable = hasValidBundledPluginConfig({
|
||||
bundledSource: params.bundledSource,
|
||||
@@ -125,16 +123,7 @@ async function installBundledPluginSource(params: {
|
||||
: `Installed bundled plugin "${params.bundledSource.pluginId}" without enabling it because it requires configuration first. Configure it, then run \`openclaw plugins enable ${params.bundledSource.pluginId}\`.`;
|
||||
await persistPluginInstall({
|
||||
snapshot: {
|
||||
config: {
|
||||
...configBase,
|
||||
plugins: {
|
||||
...configBase.plugins,
|
||||
load: {
|
||||
...configBase.plugins?.load,
|
||||
paths: mergedPaths,
|
||||
},
|
||||
},
|
||||
},
|
||||
config: configBase,
|
||||
baseHash: params.snapshot.baseHash,
|
||||
},
|
||||
pluginId: params.bundledSource.pluginId,
|
||||
|
||||
Reference in New Issue
Block a user