mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-09 00:01:17 +00:00
fix(plugins): preserve active capability providers
This commit is contained in:
@@ -67,6 +67,11 @@ export function resolvePluginCapabilityProviders<K extends CapabilityProviderReg
|
||||
key: K;
|
||||
cfg?: OpenClawConfig;
|
||||
}): CapabilityProviderForKey<K>[] {
|
||||
const activeRegistry = resolveRuntimePluginRegistry();
|
||||
const activeProviders = activeRegistry?.[params.key] ?? [];
|
||||
if (activeProviders.length > 0) {
|
||||
return activeProviders.map((entry) => entry.provider) as CapabilityProviderForKey<K>[];
|
||||
}
|
||||
const loadOptions =
|
||||
params.cfg === undefined
|
||||
? undefined
|
||||
|
||||
Reference in New Issue
Block a user