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

推荐订阅源

博客园 - 三生石上(FineUI控件)
博客园 - Franky
GbyAI
GbyAI
B
Blog
WordPress大学
WordPress大学
D
Docker
小众软件
小众软件
月光博客
月光博客
博客园 - 【当耐特】
T
The Blog of Author Tim Ferriss
IT之家
IT之家
腾讯CDC
Engineering at Meta
Engineering at Meta
Vercel News
Vercel News
H
Help Net Security
M
MIT News - Artificial intelligence
L
LangChain Blog
云风的 BLOG
云风的 BLOG
S
SegmentFault 最新的问题
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
美团技术团队
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
V
V2EX
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: align manifest media availability with runtime · ope...
shakkernerd · 2026-05-02 · via Recent Commits to openclaw:main

@@ -393,6 +393,140 @@ describe("optional media tool factory planning", () => {

393393

});

394394

});

395395396+

it("does not expose manifest-backed generation providers when plugins are globally disabled", () => {

397+

const config: OpenClawConfig = {

398+

plugins: {

399+

enabled: false,

400+

entries: {

401+

comfy: {

402+

config: {

403+

mode: "local",

404+

workflow: { "1": { inputs: {} } },

405+

promptNodeId: "1",

406+

},

407+

},

408+

},

409+

},

410+

};

411+

const configSignals = [

412+

{

413+

rootPath: "plugins.entries.comfy.config",

414+

mode: {

415+

path: "mode",

416+

default: "local",

417+

allowed: ["local"],

418+

},

419+

requiredAny: ["workflow", "workflowPath"],

420+

required: ["promptNodeId"],

421+

},

422+

];

423+

installSnapshot(config, [

424+

createPlugin({

425+

id: "comfy",

426+

contracts: {

427+

imageGenerationProviders: ["comfy"],

428+

videoGenerationProviders: ["comfy"],

429+

musicGenerationProviders: ["comfy"],

430+

},

431+

imageGenerationProviderMetadata: {

432+

comfy: { configSignals },

433+

},

434+

videoGenerationProviderMetadata: {

435+

comfy: { configSignals },

436+

},

437+

musicGenerationProviderMetadata: {

438+

comfy: { configSignals },

439+

},

440+

}),

441+

]);

442+443+

expect(

444+

__testing.resolveOptionalMediaToolFactoryPlan({

445+

config,

446+

authStore: createAuthStore(),

447+

}),

448+

).toEqual({

449+

imageGenerate: false,

450+

videoGenerate: false,

451+

musicGenerate: false,

452+

pdf: false,

453+

});

454+

expect(

455+

createOpenClawTools({

456+

config,

457+

authProfileStore: createAuthStore(),

458+

pluginToolAllowlist: ["image_generate", "video_generate", "music_generate"],

459+

}).map((tool) => tool.name),

460+

).not.toEqual(expect.arrayContaining(["image_generate", "video_generate", "music_generate"]));

461+

});

462+463+

it("does not count unresolved SecretRef config signals as configured", () => {

464+

vi.stubEnv("COMFY_TEST_API_KEY", "");

465+

const config: OpenClawConfig = {

466+

plugins: {

467+

entries: {

468+

comfy: {

469+

config: {

470+

mode: "cloud",

471+

apiKey: { source: "env", provider: "default", id: "COMFY_TEST_API_KEY" },

472+

workflow: { "1": { inputs: {} } },

473+

promptNodeId: "1",

474+

},

475+

},

476+

},

477+

},

478+

};

479+

const configSignals = [

480+

{

481+

rootPath: "plugins.entries.comfy.config",

482+

mode: {

483+

path: "mode",

484+

allowed: ["cloud"],

485+

},

486+

requiredAny: ["workflow", "workflowPath"],

487+

required: ["promptNodeId", "apiKey"],

488+

},

489+

];

490+

installSnapshot(config, [

491+

createPlugin({

492+

id: "comfy",

493+

contracts: {

494+

imageGenerationProviders: ["comfy"],

495+

videoGenerationProviders: ["comfy"],

496+

musicGenerationProviders: ["comfy"],

497+

},

498+

imageGenerationProviderMetadata: {

499+

comfy: { configSignals },

500+

},

501+

videoGenerationProviderMetadata: {

502+

comfy: { configSignals },

503+

},

504+

musicGenerationProviderMetadata: {

505+

comfy: { configSignals },

506+

},

507+

}),

508+

]);

509+510+

expect(

511+

__testing.resolveOptionalMediaToolFactoryPlan({

512+

config,

513+

authStore: createAuthStore(),

514+

}),

515+

).toEqual({

516+

imageGenerate: false,

517+

videoGenerate: false,

518+

musicGenerate: false,

519+

pdf: false,

520+

});

521+

expect(

522+

createOpenClawTools({

523+

config,

524+

authProfileStore: createAuthStore(),

525+

pluginToolAllowlist: ["image_generate", "video_generate", "music_generate"],

526+

}).map((tool) => tool.name),

527+

).not.toEqual(expect.arrayContaining(["image_generate", "video_generate", "music_generate"]));

528+

});

529+396530

it.each([

397531

{

398532

name: "legacy local provider config",