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

推荐订阅源

J
Java Code Geeks
博客园 - 司徒正美
博客园 - 【当耐特】
爱范儿
爱范儿
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
IT之家
IT之家
人人都是产品经理
人人都是产品经理
雷峰网
雷峰网
酷 壳 – CoolShell
酷 壳 – CoolShell
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
大猫的无限游戏
大猫的无限游戏
月光博客
月光博客
宝玉的分享
宝玉的分享
V
V2EX
S
SegmentFault 最新的问题
V
Visual Studio Blog
阮一峰的网络日志
阮一峰的网络日志
Martin Fowler
Martin Fowler
Jina AI
Jina AI
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园_首页
L
LangChain Blog
D
Docker
腾讯CDC

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: start configured web search providers · openclaw/ope...
joshavant · 2026-05-16 · via Recent Commits to openclaw:main

@@ -214,6 +214,28 @@ function manifestOwnsConfiguredSpeechProvider(params: {

214214

});

215215

}

216216217+

function collectConfiguredWebSearchProviderIds(config: OpenClawConfig): ReadonlySet<string> {

218+

const search = config.tools?.web?.search;

219+

if (search?.enabled === false || typeof search?.provider !== "string") {

220+

return new Set();

221+

}

222+

const providerId = normalizeOptionalLowercaseString(search.provider);

223+

return providerId ? new Set([providerId]) : new Set();

224+

}

225+226+

function manifestOwnsConfiguredWebSearchProvider(params: {

227+

manifest: PluginManifestRecord | undefined;

228+

configuredWebSearchProviderIds: ReadonlySet<string>;

229+

}): boolean {

230+

if (params.configuredWebSearchProviderIds.size === 0) {

231+

return false;

232+

}

233+

return (params.manifest?.contracts?.webSearchProviders ?? []).some((providerId) => {

234+

const normalized = normalizeOptionalLowercaseString(providerId);

235+

return normalized ? params.configuredWebSearchProviderIds.has(normalized) : false;

236+

});

237+

}

238+217239

function listModelProviderRefs(value: unknown): string[] {

218240

if (typeof value === "string") {

219241

return [value];

@@ -433,6 +455,52 @@ function canStartConfiguredSpeechProviderPlugin(params: {

433455

return activationState.enabled && activationState.explicitlyEnabled;

434456

}

435457458+

function canStartConfiguredWebSearchProviderPlugin(params: {

459+

plugin: InstalledPluginIndexRecord;

460+

manifest: PluginManifestRecord | undefined;

461+

config: OpenClawConfig;

462+

pluginsConfig: ReturnType<typeof normalizePluginsConfigWithRegistry>;

463+

activationSource: {

464+

plugins: ReturnType<typeof normalizePluginsConfigWithRegistry>;

465+

rootConfig?: OpenClawConfig;

466+

};

467+

configuredWebSearchProviderIds: ReadonlySet<string>;

468+

platform?: NodeJS.Platform;

469+

}): boolean {

470+

if (

471+

!manifestOwnsConfiguredWebSearchProvider({

472+

manifest: params.manifest,

473+

configuredWebSearchProviderIds: params.configuredWebSearchProviderIds,

474+

})

475+

) {

476+

return false;

477+

}

478+

if (!params.pluginsConfig.enabled || !params.activationSource.plugins.enabled) {

479+

return false;

480+

}

481+

if (

482+

params.pluginsConfig.deny.includes(params.plugin.pluginId) ||

483+

params.activationSource.plugins.deny.includes(params.plugin.pluginId)

484+

) {

485+

return false;

486+

}

487+

if (

488+

params.pluginsConfig.entries[params.plugin.pluginId]?.enabled === false ||

489+

params.activationSource.plugins.entries[params.plugin.pluginId]?.enabled === false

490+

) {

491+

return false;

492+

}

493+

const activationState = resolveEffectivePluginActivationState({

494+

id: params.plugin.pluginId,

495+

origin: params.plugin.origin,

496+

config: params.pluginsConfig,

497+

rootConfig: params.config,

498+

enabledByDefault: isPluginEnabledByDefaultForPlatform(params.plugin, params.platform),

499+

activationSource: params.activationSource,

500+

});

501+

return activationState.enabled;

502+

}

503+436504

function canStartConfiguredRootPlugin(params: {

437505

plugin: InstalledPluginIndexRecord;

438506

manifest: PluginManifestRecord | undefined;

@@ -693,6 +761,8 @@ export function resolveGatewayStartupPluginPlanFromRegistry(params: {

693761

const startupDreamingPluginIds = resolveGatewayStartupDreamingPluginIds(params.config);

694762

const manifestLookup = createManifestRegistryLookup(params.manifestRegistry);

695763

const configuredSpeechProviderIds = collectConfiguredSpeechProviderIds(activationSourceConfig);

764+

const configuredWebSearchProviderIds =

765+

collectConfiguredWebSearchProviderIds(activationSourceConfig);

696766

const configuredGenerationProviderIds =

697767

collectConfiguredGenerationProviderIds(activationSourceConfig);

698768

const normalizePluginId = createPluginRegistryIdNormalizer(params.index, {

@@ -763,6 +833,19 @@ export function resolveGatewayStartupPluginPlanFromRegistry(params: {

763833

) {

764834

return true;

765835

}

836+

if (

837+

canStartConfiguredWebSearchProviderPlugin({

838+

plugin,

839+

manifest,

840+

config: params.config,

841+

pluginsConfig,

842+

activationSource,

843+

configuredWebSearchProviderIds,

844+

platform: params.platform,

845+

})

846+

) {

847+

return true;

848+

}

766849

if (

767850

canStartConfiguredGenerationProviderPlugin({

768851

plugin,