mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-01 23:10:21 +00:00
fix: keep bundled CLI backend fallback stable (#64242)
This commit is contained in:
@@ -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,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user