惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

量子位
Stack Overflow Blog
Stack Overflow Blog
人人都是产品经理
人人都是产品经理
The GitHub Blog
The GitHub Blog
Engineering at Meta
Engineering at Meta
Vercel News
Vercel News
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Y
Y Combinator Blog
The Cloudflare Blog
Last Week in AI
Last Week in AI
B
Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
T
Tailwind CSS Blog
V
Visual Studio Blog
博客园 - 三生石上(FineUI控件)
小众软件
小众软件
Google DeepMind News
Google DeepMind News
D
DataBreaches.Net
博客园 - 司徒正美
B
Blog RSS Feed
Microsoft Azure Blog
Microsoft Azure Blog
罗磊的独立博客
Hugging Face - Blog
Hugging Face - Blog
L
LangChain Blog

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix(plugins): honor runtime deps fallback install option ...
clawsweeper · 2026-04-30 · via Recent Commits to openclaw:main

@@ -4,7 +4,7 @@ import {

44

withBundledPluginEnablementCompat,

55

withBundledPluginVitestCompat,

66

} from "./bundled-compat.js";

7-

import { resolveRuntimePluginRegistry } from "./loader.js";

7+

import { resolveRuntimePluginRegistry, type PluginLoadOptions } from "./loader.js";

88

import { loadPluginManifestRegistryForPluginRegistry } from "./plugin-registry.js";

99

import type { PluginRegistry } from "./registry-types.js";

1010

@@ -85,6 +85,22 @@ function resolveCapabilityProviderConfig(params: {

8585

});

8686

}

878788+

function createCapabilityProviderFallbackLoadOptions(params: {

89+

compatConfig?: OpenClawConfig;

90+

pluginIds: string[];

91+

installBundledRuntimeDeps?: boolean;

92+

}): PluginLoadOptions {

93+

const loadOptions: PluginLoadOptions = {

94+

...(params.compatConfig === undefined ? {} : { config: params.compatConfig }),

95+

onlyPluginIds: params.pluginIds,

96+

activate: false,

97+

};

98+

if (params.installBundledRuntimeDeps === false) {

99+

loadOptions.installBundledRuntimeDeps = false;

100+

}

101+

return loadOptions;

102+

}

103+88104

function findProviderById<K extends CapabilityProviderRegistryKey>(

89105

entries: PluginRegistry[K],

90106

providerId: string,

@@ -203,6 +219,7 @@ export function resolvePluginCapabilityProvider<K extends CapabilityProviderRegi

203219

key: K;

204220

providerId: string;

205221

cfg?: OpenClawConfig;

222+

installBundledRuntimeDeps?: boolean;

206223

}): CapabilityProviderForKey<K> | undefined {

207224

const activeRegistry = resolveRuntimePluginRegistry();

208225

const activeProvider = findProviderById(activeRegistry?.[params.key] ?? [], params.providerId);

@@ -224,22 +241,19 @@ export function resolvePluginCapabilityProvider<K extends CapabilityProviderRegi

224241

cfg: params.cfg,

225242

pluginIds,

226243

});

227-

const loadOptions =

228-

compatConfig === undefined

229-

? { onlyPluginIds: pluginIds, activate: false, installBundledRuntimeDeps: false }

230-

: {

231-

config: compatConfig,

232-

onlyPluginIds: pluginIds,

233-

activate: false,

234-

installBundledRuntimeDeps: false,

235-

};

244+

const loadOptions = createCapabilityProviderFallbackLoadOptions({

245+

compatConfig,

246+

pluginIds,

247+

installBundledRuntimeDeps: params.installBundledRuntimeDeps,

248+

});

236249

const registry = resolveRuntimePluginRegistry(loadOptions);

237250

return findProviderById(registry?.[params.key] ?? [], params.providerId);

238251

}

239252240253

export function resolvePluginCapabilityProviders<K extends CapabilityProviderRegistryKey>(params: {

241254

key: K;

242255

cfg?: OpenClawConfig;

256+

installBundledRuntimeDeps?: boolean;

243257

}): CapabilityProviderForKey<K>[] {

244258

const activeRegistry = resolveRuntimePluginRegistry();

245259

const activeProviders = activeRegistry?.[params.key] ?? [];

@@ -272,15 +286,11 @@ export function resolvePluginCapabilityProviders<K extends CapabilityProviderReg

272286

cfg: params.cfg,

273287

pluginIds,

274288

});

275-

const loadOptions =

276-

compatConfig === undefined

277-

? { onlyPluginIds: pluginIds, activate: false, installBundledRuntimeDeps: false }

278-

: {

279-

config: compatConfig,

280-

onlyPluginIds: pluginIds,

281-

activate: false,

282-

installBundledRuntimeDeps: false,

283-

};

289+

const loadOptions = createCapabilityProviderFallbackLoadOptions({

290+

compatConfig,

291+

pluginIds,

292+

installBundledRuntimeDeps: params.installBundledRuntimeDeps,

293+

});

284294

const registry = resolveRuntimePluginRegistry(loadOptions);

285295

const loadedProviders = registry?.[params.key] ?? [];

286296

if (params.key !== "memoryEmbeddingProviders") {