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

推荐订阅源

爱范儿
爱范儿
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
WordPress大学
WordPress大学
Y
Y Combinator Blog
I
InfoQ
美团技术团队
罗磊的独立博客
B
Blog RSS Feed
GbyAI
GbyAI
小众软件
小众软件
IT之家
IT之家
Engineering at Meta
Engineering at Meta
Blog — PlanetScale
Blog — PlanetScale
V
V2EX
Last Week in AI
Last Week in AI
酷 壳 – CoolShell
酷 壳 – CoolShell
Jina AI
Jina AI
MyScale Blog
MyScale Blog
博客园 - 聂微东
Microsoft Security Blog
Microsoft Security Blog
博客园 - 【当耐特】
Apple Machine Learning Research
Apple Machine Learning Research
The GitHub Blog
The GitHub Blog
T
The Blog of Author Tim Ferriss

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): preserve bundled allowlist edges · openclaw...
steipete · 2026-05-05 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -1,4 +1,4 @@

1-

02987f4cecb64a98170b61c925fd7b16a22b276abfb261f9281b42f613ded923 config-baseline.json

2-

de5a6f65ef09dc23453a2e12512e41c133c941519e0ebef7f2946e4a24265d17 config-baseline.core.json

1+

2566cb33c48abf3884d44cc605e3fe23ee3dc3e998c29fe86dfe773faf58cb52 config-baseline.json

2+

eab2f8a9af31910e26874209330d10ca46afd910cba88beda8a48fe6b9831159 config-baseline.core.json

33

cd7c0c7fb1435bc7e59099e9ac334462d5ad444016e9ab4512aae63a238f78dc config-baseline.channel.json

44

9832b30a696930a3da7efccf38073137571e1b66cae84e54d747b733fdafcc54 config-baseline.plugin.json

Original file line numberDiff line numberDiff line change

@@ -132,6 +132,27 @@ describe("implicit provider plugin allowlist compatibility", () => {

132132

).toEqual(["openrouter"]);

133133

});

134134
135+

it("does not re-enable plugins when allowlist mode rejects every compat plugin", () => {

136+

const config = withBundledPluginEnablementCompat({

137+

config: {

138+

plugins: {

139+

enabled: false,

140+

allow: ["openrouter"],

141+

bundledDiscovery: "allowlist",

142+

},

143+

},

144+

pluginIds: ["kilocode", "moonshot"],

145+

});

146+
147+

expect(config).toEqual({

148+

plugins: {

149+

enabled: false,

150+

allow: ["openrouter"],

151+

bundledDiscovery: "allowlist",

152+

},

153+

});

154+

});

155+
135156

it("still honors explicit plugin denies over compat allowlist injection", () => {

136157

const config = withBundledPluginEnablementCompat({

137158

config: withBundledPluginAllowlistCompat({

Original file line numberDiff line numberDiff line change

@@ -46,22 +46,24 @@ export function withBundledPluginEnablementCompat(params: {

4646

const allow = params.config?.plugins?.allow;

4747

const allowSet =

4848

!useCompatDiscovery && Array.isArray(allow) && allow.length > 0 ? new Set(allow) : undefined;

49+

let hasEligiblePlugin = false;

4950

let changed = false;

5051

const nextEntries: Record<string, PluginEntryConfig> = { ...existingEntries };

5152
5253

for (const pluginId of params.pluginIds) {

53-

if (existingEntries[pluginId] !== undefined) {

54+

if (allowSet && !allowSet.has(pluginId)) {

5455

continue;

5556

}

56-

if (allowSet && !allowSet.has(pluginId)) {

57+

hasEligiblePlugin = true;

58+

if (existingEntries[pluginId] !== undefined) {

5759

continue;

5860

}

5961

nextEntries[pluginId] = { enabled: true };

6062

changed = true;

6163

}

6264
6365

if (!changed) {

64-

if (!forcePluginsEnabled) {

66+

if (!forcePluginsEnabled || !hasEligiblePlugin) {

6567

return params.config;

6668

}

6769

}

Original file line numberDiff line numberDiff line change

@@ -152,4 +152,37 @@ describe("web provider public artifact manifest fallback", () => {

152152

pluginId: "fallback-fetch",

153153

});

154154

});

155+
156+

it("matches bundled web-search candidates through provider alias allowlist entries", () => {

157+

mocks.resolveBundledExplicitWebSearchProvidersFromPublicArtifacts.mockReturnValueOnce(null);

158+

mocks.loadPluginMetadataSnapshot.mockReturnValueOnce({

159+

diagnostics: [],

160+

plugins: [

161+

{

162+

id: "google",

163+

origin: "bundled",

164+

rootDir: "/tmp/google",

165+

contracts: { webSearchProviders: ["gemini"] },

166+

},

167+

],

168+

});

169+

mocks.loadBundledWebSearchProviderEntriesFromDir.mockReturnValueOnce([

170+

{ id: "gemini", pluginId: "google" },

171+

]);

172+
173+

const providers = resolveBundledWebSearchProvidersFromPublicArtifacts({

174+

config: {

175+

plugins: {

176+

allow: ["google-gemini-cli"],

177+

bundledDiscovery: "allowlist",

178+

},

179+

},

180+

});

181+
182+

expect(providers).toEqual([{ id: "gemini", pluginId: "google" }]);

183+

expect(mocks.loadBundledWebSearchProviderEntriesFromDir).toHaveBeenCalledWith({

184+

dirName: "google",

185+

pluginId: "google",

186+

});

187+

});

155188

});

Original file line numberDiff line numberDiff line change

@@ -1,4 +1,5 @@

11

import path from "node:path";

2+

import { normalizePluginId } from "./config-state.js";

23

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

34

import { loadManifestMetadataSnapshot } from "./manifest-contract-eligibility.js";

45

import type { PluginManifestRecord } from "./manifest-registry.js";

@@ -38,7 +39,9 @@ function filterAllowlistedBundledPluginIds(

3839

) {

3940

return [...pluginIds];

4041

}

41-

const allowedPluginIds = new Set(allow.map((pluginId) => pluginId.trim()).filter(Boolean));

42+

const allowedPluginIds = new Set(

43+

allow.map((pluginId) => normalizePluginId(pluginId)).filter(Boolean),

44+

);

4245

return pluginIds.filter((pluginId) => allowedPluginIds.has(pluginId));

4346

}

4447