fix(config): preserve explicit channel enabled state for plugin auto-enable
This commit is contained in:
parent
b9c2ecab91
commit
542b56a37c
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user