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

推荐订阅源

The GitHub Blog
The GitHub Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Microsoft Security Blog
Microsoft Security Blog
J
Java Code Geeks
S
SegmentFault 最新的问题
Apple Machine Learning Research
Apple Machine Learning Research
N
Netflix TechBlog - Medium
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园_首页
宝玉的分享
宝玉的分享
Google DeepMind News
Google DeepMind News
B
Blog RSS Feed
Hugging Face - Blog
Hugging Face - Blog
量子位
Blog — PlanetScale
Blog — PlanetScale
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
阮一峰的网络日志
阮一峰的网络日志
D
Docker
罗磊的独立博客
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
云风的 BLOG
云风的 BLOG
IT之家
IT之家
MyScale Blog
MyScale Blog
Microsoft Azure Blog
Microsoft Azure 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
fix: gate plugin tools from manifest availability · openc...
shakkernerd · 2026-05-02 · via Recent Commits to openclaw:main

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

565565

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

566566

});

567567568+

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

569+

const config: OpenClawConfig = {

570+

plugins: {

571+

entries: {

572+

comfy: {

573+

config: {

574+

mode: "cloud",

575+

apiKey: { source: "file", provider: "vault", id: "/comfy/api-key" },

576+

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

577+

promptNodeId: "1",

578+

},

579+

},

580+

},

581+

},

582+

secrets: {

583+

providers: {

584+

vault: {

585+

source: "file",

586+

path: "/tmp/openclaw-secrets.json",

587+

mode: "json",

588+

},

589+

},

590+

},

591+

};

592+

const configSignals = [

593+

{

594+

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

595+

mode: {

596+

path: "mode",

597+

allowed: ["cloud"],

598+

},

599+

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

600+

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

601+

},

602+

];

603+

installSnapshot(config, [

604+

createPlugin({

605+

id: "comfy",

606+

contracts: {

607+

imageGenerationProviders: ["comfy"],

608+

videoGenerationProviders: ["comfy"],

609+

musicGenerationProviders: ["comfy"],

610+

},

611+

imageGenerationProviderMetadata: {

612+

comfy: { configSignals },

613+

},

614+

videoGenerationProviderMetadata: {

615+

comfy: { configSignals },

616+

},

617+

musicGenerationProviderMetadata: {

618+

comfy: { configSignals },

619+

},

620+

}),

621+

]);

622+623+

expect(

624+

__testing.resolveOptionalMediaToolFactoryPlan({

625+

config,

626+

authStore: createAuthStore(),

627+

}),

628+

).toMatchObject({

629+

imageGenerate: true,

630+

videoGenerate: true,

631+

musicGenerate: true,

632+

});

633+

});

634+635+

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

636+

const config: OpenClawConfig = {};

637+

installSnapshot(config, [

638+

createPlugin({

639+

id: "media-owner",

640+

contracts: { mediaUnderstandingProviders: ["media-owner"] },

641+

setupProviders: [{ id: "media-owner", envVars: ["MEDIA_OWNER_API_KEY"] }],

642+

}),

643+

]);

644+645+

expect(

646+

createOpenClawTools({

647+

config,

648+

agentDir: "/tmp/openclaw-agent",

649+

authProfileStore: createAuthStore(),

650+

disablePluginTools: true,

651+

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

652+

).not.toContain("image");

653+

});

654+568655

it.each([

569656

{

570657

name: "legacy local provider config",

@@ -687,22 +774,20 @@ describe("optional media tool factory planning", () => {

687774

});

688775

});

689776690-

it("falls back to existing factory checks when snapshot or auth store proof is missing", () => {

691-

expect(__testing.resolveOptionalMediaToolFactoryPlan({ config: {} })).toEqual({

692-

imageGenerate: true,

693-

videoGenerate: true,

694-

musicGenerate: true,

695-

pdf: true,

696-

});

697-777+

it("does not use a generic factory plan when metadata has no availability proof", () => {

698778

const config: OpenClawConfig = {};

699779

installSnapshot(config, []);

700780701-

expect(__testing.resolveOptionalMediaToolFactoryPlan({ config })).toEqual({

702-

imageGenerate: true,

703-

videoGenerate: true,

704-

musicGenerate: true,

705-

pdf: true,

781+

expect(

782+

__testing.resolveOptionalMediaToolFactoryPlan({

783+

config,

784+

authStore: createAuthStore(),

785+

}),

786+

).toEqual({

787+

imageGenerate: false,

788+

videoGenerate: false,

789+

musicGenerate: false,

790+

pdf: false,

706791

});

707792

});

708793

});