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

推荐订阅源

Stack Overflow Blog
Stack Overflow Blog
Vercel News
Vercel News
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
J
Java Code Geeks
M
MIT News - Artificial intelligence
Microsoft Azure Blog
Microsoft Azure Blog
B
Blog RSS Feed
MongoDB | Blog
MongoDB | Blog
G
Google Developers Blog
Engineering at Meta
Engineering at Meta
量子位
S
SegmentFault 最新的问题
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
A
About on SuperTechFans
P
Proofpoint News Feed
Last Week in AI
Last Week in AI
Recent Announcements
Recent Announcements
腾讯CDC
I
InfoQ
F
Fortinet All Blogs
Hugging Face - Blog
Hugging Face - Blog
Blog — PlanetScale
Blog — PlanetScale
H
Help Net Security
爱范儿
爱范儿

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(secrets): honor plugin install ledger for web fetch d...
vincentkoc · 2026-04-26 · via Recent Commits to openclaw:main

@@ -121,7 +121,10 @@ function inferExactBundledPluginScopedWebToolConfigOwner(params: {

121121

return isRecord(pluginConfig?.[params.key]) ? params.pluginId : undefined;

122122

}

123123124-

async function hasCustomWebSearchPluginRisk(params: {

124+

type WebProviderContract = "webSearchProviders" | "webFetchProviders";

125+126+

async function hasCustomWebProviderPluginRisk(params: {

127+

contract: WebProviderContract;

125128

config: OpenClawConfig;

126129

env: NodeJS.ProcessEnv;

127130

}): Promise<boolean> {

@@ -143,7 +146,7 @@ async function hasCustomWebSearchPluginRisk(params: {

143146

const { resolveManifestContractPluginIds } = await loadRuntimeWebToolsManifest();

144147

const bundledPluginIds = new Set<string>(

145148

resolveManifestContractPluginIds({

146-

contract: "webSearchProviders",

149+

contract: params.contract,

147150

origin: "bundled",

148151

config: params.config,

149152

env: params.env,

@@ -377,6 +380,7 @@ async function resolveBundledWebFetchProviders(params: {

377380

sourceConfig: OpenClawConfig;

378381

context: ResolverContext;

379382

configuredBundledPluginId?: string;

383+

hasCustomWebFetchPluginRisk: boolean;

380384

}): Promise<PluginWebFetchProviderEntry[]> {

381385

const env = { ...process.env, ...params.context.env };

382386

if (params.configuredBundledPluginId) {

@@ -395,15 +399,24 @@ async function resolveBundledWebFetchProviders(params: {

395399

origin: "bundled",

396400

});

397401

}

398-

const { resolveBundledWebFetchProvidersFromPublicArtifacts } =

399-

await loadRuntimeWebToolsPublicArtifacts();

400-

const bundled = resolveBundledWebFetchProvidersFromPublicArtifacts({

401-

config: params.sourceConfig,

402-

env,

403-

bundledAllowlistCompat: true,

404-

});

405-

if (bundled && bundled.length > 0) {

406-

return bundled;

402+

if (!params.hasCustomWebFetchPluginRisk) {

403+

const { resolveBundledWebFetchProvidersFromPublicArtifacts } =

404+

await loadRuntimeWebToolsPublicArtifacts();

405+

const bundled = resolveBundledWebFetchProvidersFromPublicArtifacts({

406+

config: params.sourceConfig,

407+

env,

408+

bundledAllowlistCompat: true,

409+

});

410+

if (bundled && bundled.length > 0) {

411+

return bundled;

412+

}

413+

const { resolvePluginWebFetchProviders } = await loadRuntimeWebToolsFallbackProviders();

414+

return resolvePluginWebFetchProviders({

415+

config: params.sourceConfig,

416+

env,

417+

bundledAllowlistCompat: true,

418+

origin: "bundled",

419+

});

407420

}

408421

const { resolvePluginWebFetchProviders } = await loadRuntimeWebToolsFallbackProviders();

409422

return resolvePluginWebFetchProviders({

@@ -481,12 +494,22 @@ export async function resolveRuntimeWebTools(params: {

481494

const resolvedWeb = isRecord(resolvedTools?.web) ? resolvedTools.web : undefined;

482495

let hasCustomWebSearchRisk: Promise<boolean> | undefined;

483496

const getHasCustomWebSearchRisk = (): Promise<boolean> => {

484-

hasCustomWebSearchRisk ??= hasCustomWebSearchPluginRisk({

497+

hasCustomWebSearchRisk ??= hasCustomWebProviderPluginRisk({

498+

contract: "webSearchProviders",

485499

config: params.sourceConfig,

486500

env,

487501

});

488502

return hasCustomWebSearchRisk;

489503

};

504+

let hasCustomWebFetchRisk: Promise<boolean> | undefined;

505+

const getHasCustomWebFetchRisk = (): Promise<boolean> => {

506+

hasCustomWebFetchRisk ??= hasCustomWebProviderPluginRisk({

507+

contract: "webFetchProviders",

508+

config: params.sourceConfig,

509+

env,

510+

});

511+

return hasCustomWebFetchRisk;

512+

};

490513

const legacyXSearchSource = isRecord(sourceWeb?.x_search) ? sourceWeb.x_search : undefined;

491514

const legacyXSearchResolved = isRecord(resolvedWeb?.x_search) ? resolvedWeb.x_search : undefined;

492515

@@ -670,11 +693,12 @@ export async function resolveRuntimeWebTools(params: {

670693

invalidAutoDetectCode: "WEB_FETCH_PROVIDER_INVALID_AUTODETECT",

671694

sourceConfig: params.sourceConfig,

672695

context: params.context,

673-

resolveProviders: ({ configuredBundledPluginId }) =>

696+

resolveProviders: async ({ configuredBundledPluginId }) =>

674697

resolveBundledWebFetchProviders({

675698

sourceConfig: params.sourceConfig,

676699

context: params.context,

677700

configuredBundledPluginId,

701+

hasCustomWebFetchPluginRisk: await getHasCustomWebFetchRisk(),

678702

}),

679703

sortProviders: sortWebFetchProvidersForAutoDetect,

680704

readConfiguredCredential: ({ provider, config, toolConfig }) =>