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

推荐订阅源

博客园_首页
Y
Y Combinator Blog
Engineering at Meta
Engineering at Meta
D
Docker
GbyAI
GbyAI
aimingoo的专栏
aimingoo的专栏
大猫的无限游戏
大猫的无限游戏
腾讯CDC
P
Proofpoint News Feed
A
About on SuperTechFans
WordPress大学
WordPress大学
Stack Overflow Blog
Stack Overflow Blog
Google DeepMind News
Google DeepMind News
C
Check Point Blog
Microsoft Security Blog
Microsoft Security Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
L
LangChain Blog
MyScale Blog
MyScale Blog
博客园 - 三生石上(FineUI控件)
Hugging Face - Blog
Hugging Face - Blog
Microsoft Azure Blog
Microsoft Azure Blog
N
Netflix TechBlog - Medium
G
Google Developers Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻

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): scope metadata manifest reads · openclaw/op...
vincentkoc · 2026-04-26 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -207,6 +207,26 @@ describe("setup-registry getJiti", () => {

207207

);

208208

});

209209
210+

it("passes explicit plugin id scope into setup manifest reads", () => {

211+

const pluginRoot = makeTempDir();

212+

fs.writeFileSync(path.join(pluginRoot, "setup-api.js"), "export default {};\n", "utf-8");

213+

mocks.loadPluginManifestRegistry.mockReturnValue({

214+

plugins: [{ id: "test-plugin", rootDir: pluginRoot }],

215+

diagnostics: [],

216+

});

217+
218+

resolvePluginSetupRegistry({

219+

pluginIds: ["test-plugin"],

220+

env: {},

221+

});

222+
223+

expect(mocks.loadPluginManifestRegistry).toHaveBeenCalledWith(

224+

expect.objectContaining({

225+

pluginIds: ["test-plugin"],

226+

}),

227+

);

228+

});

229+
210230

it("skips setup-api loading when config has no relevant migration triggers", () => {

211231

const pluginRoot = makeTempDir();

212232

fs.writeFileSync(path.join(pluginRoot, "setup-api.js"), "export default {};\n", "utf-8");

Original file line numberDiff line numberDiff line change

@@ -380,12 +380,14 @@ function loadSetupManifestRegistry(params?: {

380380

config?: OpenClawConfig;

381381

workspaceDir?: string;

382382

env?: NodeJS.ProcessEnv;

383+

pluginIds?: readonly string[];

383384

}) {

384385

const env = params?.env ?? process.env;

385386

return loadPluginManifestRegistryForPluginRegistry({

386387

config: params?.config,

387388

workspaceDir: params?.workspaceDir,

388389

env,

390+

pluginIds: params?.pluginIds,

389391

includeDisabled: true,

390392

});

391393

}

@@ -532,6 +534,7 @@ export function resolvePluginSetupRegistry(params?: {

532534

const manifestRegistry = loadSetupManifestRegistry({

533535

workspaceDir: params?.workspaceDir,

534536

env,

537+

pluginIds: params?.pluginIds,

535538

});

536539
537540

for (const record of manifestRegistry.plugins) {

Original file line numberDiff line numberDiff line change

@@ -62,6 +62,7 @@ describe("resolveManifestDeclaredWebProviderCandidatePluginIds", () => {

6262

onlyPluginIds: [],

6363

}),

6464

).toEqual([]);

65+

expect(mocks.loadPluginManifestRegistryForInstalledIndex).not.toHaveBeenCalled();

6566

});

6667
6768

it("keeps runtime fallback for scoped plugins with no declared web candidates", () => {

@@ -72,6 +73,11 @@ describe("resolveManifestDeclaredWebProviderCandidatePluginIds", () => {

7273

onlyPluginIds: ["missing-plugin"],

7374

}),

7475

).toBeUndefined();

76+

expect(mocks.loadPluginManifestRegistryForInstalledIndex).toHaveBeenCalledWith(

77+

expect.objectContaining({

78+

pluginIds: ["missing-plugin"],

79+

}),

80+

);

7581

});

7682
7783

it("derives provider candidates from a single manifest-registry read", () => {

Original file line numberDiff line numberDiff line change

@@ -63,11 +63,13 @@ function loadInstalledWebProviderManifestRecords(params: {

6363

config?: PluginLoadOptions["config"];

6464

workspaceDir?: string;

6565

env?: PluginLoadOptions["env"];

66+

pluginIds?: readonly string[];

6667

}): readonly PluginManifestRecord[] {

6768

return loadPluginManifestRegistryForPluginRegistry({

6869

config: params.config,

6970

workspaceDir: params.workspaceDir,

7071

env: params.env,

72+

pluginIds: params.pluginIds,

7173

includeDisabled: true,

7274

}).plugins;

7375

}

@@ -82,11 +84,15 @@ export function resolveManifestDeclaredWebProviderCandidatePluginIds(params: {

8284

origin?: PluginManifestRecord["origin"];

8385

}): string[] | undefined {

8486

const scopedPluginIds = normalizePluginIdScope(params.onlyPluginIds);

87+

if (scopedPluginIds?.length === 0) {

88+

return [];

89+

}

8590

const onlyPluginIdSet = createPluginIdScopeSet(scopedPluginIds);

8691

const ids = loadInstalledWebProviderManifestRecords({

8792

config: params.config,

8893

workspaceDir: params.workspaceDir,

8994

env: params.env,

95+

pluginIds: scopedPluginIds,

9096

})

9197

.filter(

9298

(plugin) =>

@@ -99,7 +105,7 @@ export function resolveManifestDeclaredWebProviderCandidatePluginIds(params: {

99105

if (ids.length > 0) {

100106

return ids;

101107

}

102-

return scopedPluginIds?.length === 0 ? [] : undefined;

108+

return undefined;

103109

}

104110
105111

function resolveBundledWebProviderCompatPluginIds(params: {