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

推荐订阅源

Last Week in AI
Last Week in AI
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园_首页
雷峰网
雷峰网
IT之家
IT之家
I
InfoQ
酷 壳 – CoolShell
酷 壳 – CoolShell
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
B
Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 【当耐特】
大猫的无限游戏
大猫的无限游戏
博客园 - 聂微东
Hugging Face - Blog
Hugging Face - Blog
A
About on SuperTechFans
月光博客
月光博客
P
Proofpoint News Feed
博客园 - 三生石上(FineUI控件)
J
Java Code Geeks
G
Google Developers Blog
小众软件
小众软件
宝玉的分享
宝玉的分享
Jina AI
Jina AI
V
Visual Studio 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
test(plugins): cover config-origin tool cold load diagnos...
steipete · 2026-05-03 · via Recent Commits to openclaw:main

@@ -277,7 +277,19 @@ function installToolManifestSnapshots(params: {

277277

policyHash: "test",

278278

generatedAtMs: 0,

279279

installRecords: {},

280-

plugins: [],

280+

plugins: plugins.map((plugin) => ({

281+

pluginId: String(plugin.id),

282+

origin: plugin.origin,

283+

enabled: true,

284+

enabledByDefault: plugin.enabledByDefault,

285+

startup: {

286+

sidecar: false,

287+

memory: false,

288+

deferConfiguredChannelFullLoadUntilAfterListen: false,

289+

agentHarnesses: [],

290+

},

291+

compat: [],

292+

})),

281293

diagnostics: [],

282294

},

283295

registryDiagnostics: [],

@@ -301,7 +313,7 @@ function installToolManifestSnapshots(params: {

301313

manifestRegistryMs: 0,

302314

ownerMapsMs: 0,

303315

totalMs: 0,

304-

indexPluginCount: 0,

316+

indexPluginCount: plugins.length,

305317

manifestPluginCount: plugins.length,

306318

},

307319

} as never,

@@ -491,16 +503,28 @@ describe("resolvePluginTools optional tools", () => {

491503

);

492504

});

493505494-

it("auto-loads cold registry for path-based (bundled-origin) plugins without pre-warming (#76598)", () => {

495-

const config = createContext().config;

506+

it("auto-loads cold registry for path-based config-origin plugins without pre-warming (#76598)", () => {

507+

const context = {

508+

...createContext(),

509+

config: {

510+

...createContext().config,

511+

plugins: {

512+

...createContext().config.plugins,

513+

entries: {

514+

"optional-demo": { enabled: true },

515+

},

516+

},

517+

},

518+

};

519+

const config = context.config;

496520

const registry = createToolRegistry([createOptionalDemoEntry()]);

497521

loadOpenClawPluginsMock.mockReturnValue(registry);

498522

installToolManifestSnapshot({

499523

config,

500524

plugin: {

501525

id: "optional-demo",

502-

origin: "bundled",

503-

enabledByDefault: true,

526+

origin: "config",

527+

enabledByDefault: undefined,

504528

channels: [],

505529

providers: [],

506530

contracts: {

@@ -514,6 +538,7 @@ describe("resolvePluginTools optional tools", () => {

514538

// This is the regression path from PR #76004 where path-based plugin tools disappeared.

515539

const tools = resolvePluginTools(

516540

createResolveToolsParams({

541+

context,

517542

toolAllowlist: ["optional_tool"],

518543

}),

519544

);

@@ -528,6 +553,50 @@ describe("resolvePluginTools optional tools", () => {

528553

);

529554

});

530555556+

it("warns when cold registry load still does not provide the selected plugin tools", () => {

557+

const context = {

558+

...createContext(),

559+

config: {

560+

...createContext().config,

561+

plugins: {

562+

...createContext().config.plugins,

563+

entries: {

564+

"optional-demo": { enabled: true },

565+

},

566+

},

567+

},

568+

};

569+

const config = context.config;

570+

const registry = createToolRegistry([]);

571+

loadOpenClawPluginsMock.mockReturnValue(registry);

572+

installToolManifestSnapshot({

573+

config,

574+

plugin: {

575+

id: "optional-demo",

576+

origin: "config",

577+

enabledByDefault: undefined,

578+

channels: [],

579+

providers: [],

580+

contracts: {

581+

tools: ["optional_tool"],

582+

},

583+

},

584+

});

585+586+

const tools = resolvePluginTools(

587+

createResolveToolsParams({

588+

context,

589+

toolAllowlist: ["optional_tool"],

590+

}),

591+

);

592+593+

expect(tools).toEqual([]);

594+

expectSingleDiagnosticMessage(

595+

registry.diagnostics,

596+

"plugin tool registry did not include selected plugin tools after cold load (optional-demo)",

597+

);

598+

});

599+531600

it("does not reuse a pinned gateway registry for manifest-unavailable tools", () => {

532601

const config = createContext().config;

533602

installToolManifestSnapshot({