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

推荐订阅源

M
MIT News - Artificial intelligence
罗磊的独立博客
Hugging Face - Blog
Hugging Face - Blog
Apple Machine Learning Research
Apple Machine Learning Research
Last Week in AI
Last Week in AI
S
SegmentFault 最新的问题
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
美团技术团队
人人都是产品经理
人人都是产品经理
WordPress大学
WordPress大学
The Cloudflare Blog
IT之家
IT之家
雷峰网
雷峰网
小众软件
小众软件
博客园 - 叶小钗
博客园 - 聂微东
爱范儿
爱范儿
博客园 - 司徒正美
博客园 - 三生石上(FineUI控件)
V
Visual Studio Blog
博客园 - 【当耐特】
V
V2EX
博客园_首页
T
Tailwind CSS 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: tighten media factory plan assertions · openclaw/op...
steipete · 2026-05-10 · via Recent Commits to openclaw:main

@@ -471,14 +471,11 @@ describe("optional media tool factory planning", () => {

471471

];

472472

installSnapshot(config, plugins);

473473474-

expect(

475-

resolveOptionalMediaToolFactoryPlan({

476-

config,

477-

authStore: createAuthStore(["openai-codex"]),

478-

}),

479-

).toMatchObject({

480-

imageGenerate: true,

474+

const plan = resolveOptionalMediaToolFactoryPlan({

475+

config,

476+

authStore: createAuthStore(["openai-codex"]),

481477

});

478+

expect(plan.imageGenerate).toBe(true);

482479

installSnapshot(config, plugins, undefined, process.cwd());

483480

expect(

484481

(

@@ -538,16 +535,13 @@ describe("optional media tool factory planning", () => {

538535

}),

539536

]);

540537541-

expect(

542-

resolveOptionalMediaToolFactoryPlan({

543-

config,

544-

authStore: createAuthStore(),

545-

}),

546-

).toMatchObject({

547-

imageGenerate: true,

548-

videoGenerate: true,

549-

musicGenerate: true,

538+

const plan = resolveOptionalMediaToolFactoryPlan({

539+

config,

540+

authStore: createAuthStore(),

550541

});

542+

expect(plan.imageGenerate).toBe(true);

543+

expect(plan.videoGenerate).toBe(true);

544+

expect(plan.musicGenerate).toBe(true);

551545

});

552546553547

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

@@ -608,15 +602,16 @@ describe("optional media tool factory planning", () => {

608602

musicGenerate: false,

609603

pdf: false,

610604

});

611-

expect(

612-

(

613-

await createOpenClawToolsForTest({

614-

config,

615-

authProfileStore: createAuthStore(),

616-

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

617-

})

618-

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

619-

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

605+

const toolNames = (

606+

await createOpenClawToolsForTest({

607+

config,

608+

authProfileStore: createAuthStore(),

609+

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

610+

})

611+

).map((tool) => tool.name);

612+

expect(toolNames).not.toContain("image_generate");

613+

expect(toolNames).not.toContain("video_generate");

614+

expect(toolNames).not.toContain("music_generate");

620615

});

621616622617

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

@@ -684,16 +679,17 @@ describe("optional media tool factory planning", () => {

684679

musicGenerate: false,

685680

pdf: false,

686681

});

687-

expect(

688-

(

689-

await createOpenClawToolsForTest({

690-

config,

691-

workspaceDir,

692-

authProfileStore: createAuthStore(),

693-

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

694-

})

695-

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

696-

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

682+

const toolNames = (

683+

await createOpenClawToolsForTest({

684+

config,

685+

workspaceDir,

686+

authProfileStore: createAuthStore(),

687+

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

688+

})

689+

).map((tool) => tool.name);

690+

expect(toolNames).not.toContain("image_generate");

691+

expect(toolNames).not.toContain("video_generate");

692+

expect(toolNames).not.toContain("music_generate");

697693

});

698694699695

it("counts configured non-env SecretRef config signals without resolving secrets", () => {

@@ -751,16 +747,13 @@ describe("optional media tool factory planning", () => {

751747

}),

752748

]);

753749754-

expect(

755-

resolveOptionalMediaToolFactoryPlan({

756-

config,

757-

authStore: createAuthStore(),

758-

}),

759-

).toMatchObject({

760-

imageGenerate: true,

761-

videoGenerate: true,

762-

musicGenerate: true,

750+

const plan = resolveOptionalMediaToolFactoryPlan({

751+

config,

752+

authStore: createAuthStore(),

763753

});

754+

expect(plan.imageGenerate).toBe(true);

755+

expect(plan.videoGenerate).toBe(true);

756+

expect(plan.musicGenerate).toBe(true);

764757

});

765758766759

it("does not register the image tool without cheap vision availability evidence", async () => {

@@ -871,14 +864,11 @@ describe("optional media tool factory planning", () => {

871864

}),

872865

]);

873866874-

expect(

875-

resolveOptionalMediaToolFactoryPlan({

876-

config,

877-

authStore: createAuthStore(["openai-codex"]),

878-

}),

879-

).toMatchObject({

880-

imageGenerate: false,

867+

const plan = resolveOptionalMediaToolFactoryPlan({

868+

config,

869+

authStore: createAuthStore(["openai-codex"]),

881870

});

871+

expect(plan.imageGenerate).toBe(false);

882872

});

883873884874

it("ignores external manifest capability providers excluded by plugin policy", () => {