fix: keep bundled CLI backend fallback stable (#64242)

This commit is contained in:
Peter Steinberger
2026-04-10 14:45:34 +01:00
parent beaff3c553
commit 09a8e0f289

View File

@@ -54,11 +54,14 @@ function loadSetupRegistryRuntime(): SetupRegistryRuntimeModule | null {
}
export function resolvePluginSetupCliBackendRuntime(params: { backend: string }) {
const normalized = normalizeProviderId(params.backend);
const runtime = loadSetupRegistryRuntime();
if (runtime) {
return runtime.resolvePluginSetupCliBackend(params);
const resolved = runtime.resolvePluginSetupCliBackend(params);
if (resolved) {
return resolved;
}
}
const normalized = normalizeProviderId(params.backend);
return resolveBundledSetupCliBackends().find(
(entry) => normalizeProviderId(entry.backend.id) === normalized,
);