From 578178faa45e9e3467d097bba7341d8da65a0c46 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Fri, 1 May 2026 04:19:50 -0700 Subject: [PATCH] fix(plugins): scope requested speech providers --- src/plugins/capability-provider-runtime.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/plugins/capability-provider-runtime.ts b/src/plugins/capability-provider-runtime.ts index 58043af3762..5d8ffc7fe29 100644 --- a/src/plugins/capability-provider-runtime.ts +++ b/src/plugins/capability-provider-runtime.ts @@ -472,11 +472,12 @@ export function resolvePluginCapabilityProviders entry.provider) as CapabilityProviderForKey[]; } } - const requestedSpeechProviders = - missingRequestedSpeechProviders ?? - (activeProviders.length === 0 && params.key === "speechProviders" - ? collectRequestedSpeechProviderIds(params.cfg) - : undefined); + let requestedSpeechProviders: Set | undefined; + if (params.key === "speechProviders") { + requestedSpeechProviders = + missingRequestedProviders ?? + (activeProviders.length === 0 ? collectRequestedSpeechProviderIds(params.cfg) : undefined); + } const pluginIds = resolveRequestedCapabilityCompatPluginIds({ key: params.key,