fix(config): preserve explicit channel enabled state for plugin auto-enable

This commit is contained in:
root 2026-02-24 14:59:38 +00:00
parent b9c2ecab91
commit 542b56a37c

View File

@ -437,7 +437,6 @@ function registerPluginEntry(cfg: OpenClawConfig, pluginId: string): OpenClawCon
...cfg.channels,
[builtInChannelId]: {
...existingRecord,
enabled: true,
},
},
};
@ -515,7 +514,7 @@ export function applyPluginAutoEnable(params: {
) {
return false;
}
return (channelConfig as { enabled?: unknown }).enabled === true;
return (channelConfig as { enabled?: unknown }).enabled !== false;
})()
: next.plugins?.entries?.[entry.pluginId]?.enabled === true;
if (alreadyEnabled && !allowMissing) {