mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-01 21:50:20 +00:00
fix(plugins): restore activation state wrapper
This commit is contained in:
@@ -197,6 +197,10 @@ export function resolvePluginActivationState(params: {
|
||||
config: params.sourceConfig ?? params.config,
|
||||
rootConfig: params.sourceRootConfig ?? params.rootConfig,
|
||||
});
|
||||
const explicitlyConfiguredBundledChannel =
|
||||
params.origin === "bundled" &&
|
||||
explicitSelection.explicitlyEnabled &&
|
||||
explicitSelection.reason === "channel enabled in config";
|
||||
|
||||
if (!params.config.enabled) {
|
||||
return {
|
||||
@@ -245,7 +249,7 @@ export function resolvePluginActivationState(params: {
|
||||
reason: "selected memory slot",
|
||||
};
|
||||
}
|
||||
if (params.config.allow.length > 0 && !explicitlyAllowed) {
|
||||
if (params.config.allow.length > 0 && !explicitlyAllowed && !explicitlyConfiguredBundledChannel) {
|
||||
return {
|
||||
enabled: false,
|
||||
activated: false,
|
||||
|
||||
Reference in New Issue
Block a user