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

推荐订阅源

aimingoo的专栏
aimingoo的专栏
腾讯CDC
Y
Y Combinator Blog
L
LangChain Blog
B
Blog
U
Unit 42
P
Proofpoint News Feed
G
Google Developers Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 【当耐特】
WordPress大学
WordPress大学
月光博客
月光博客
Vercel News
Vercel News
雷峰网
雷峰网
T
The Blog of Author Tim Ferriss
MyScale Blog
MyScale Blog
大猫的无限游戏
大猫的无限游戏
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
酷 壳 – CoolShell
酷 壳 – CoolShell
Blog — PlanetScale
Blog — PlanetScale
博客园 - 司徒正美
云风的 BLOG
云风的 BLOG
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - 叶小钗

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): keep disabled-plugin guard for non-speech p...
clawsweeper · 2026-05-01 · via Recent Commits to openclaw:main

@@ -691,7 +691,7 @@ describe("resolvePluginCapabilityProviders", () => {

691691

});

692692

});

693693694-

it("uses active capability providers when plugins are globally disabled", () => {

694+

it("does not resolve non-speech capability providers when plugins are globally disabled", () => {

695695

const cfg = { plugins: { enabled: false, allow: ["custom-plugin"] } } as OpenClawConfig;

696696

const active = createEmptyPluginRegistry();

697697

active.mediaUnderstandingProviders.push({

@@ -710,12 +710,12 @@ describe("resolvePluginCapabilityProviders", () => {

710710

cfg,

711711

});

712712713-

expectResolvedCapabilityProviderIds(providers, ["openai"]);

713+

expectNoResolvedCapabilityProviders(providers);

714714

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

715715

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

716716

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

717717

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

718-

expect(mocks.resolveRuntimePluginRegistry).toHaveBeenCalledWith();

718+

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

719719

});

720720721721

it("loads bundled speech providers through compat when plugins are globally disabled", () => {

@@ -958,42 +958,95 @@ describe("resolvePluginCapabilityProviders", () => {

958958

});

959959

});

960960961-

it("loads targeted bundled capability providers through compat when plugins are globally disabled", () => {

961+

it("does not load targeted non-speech capability providers when plugins are globally disabled", () => {

962+

const cfg = { plugins: { enabled: false, allow: ["custom-plugin"] } } as OpenClawConfig;

963+

const loaded = createEmptyPluginRegistry();

964+

loaded.memoryEmbeddingProviders.push({

965+

pluginId: "google",

966+

pluginName: "google",

967+

source: "test",

968+

provider: {

969+

id: "gemini",

970+

create: async () => ({ provider: null }),

971+

},

972+

} as never);

973+

mocks.loadPluginManifestRegistry.mockReturnValue({

974+

plugins: [

975+

{

976+

id: "google",

977+

origin: "bundled",

978+

contracts: { memoryEmbeddingProviders: ["gemini"] },

979+

},

980+

{

981+

id: "openai",

982+

origin: "bundled",

983+

contracts: { memoryEmbeddingProviders: ["openai"] },

984+

},

985+

] as never,

986+

diagnostics: [],

987+

});

988+

mocks.resolveRuntimePluginRegistry.mockImplementation((params?: unknown) =>

989+

params === undefined ? undefined : loaded,

990+

);

991+992+

const provider = resolvePluginCapabilityProvider({

993+

key: "memoryEmbeddingProviders",

994+

providerId: "gemini",

995+

cfg,

996+

});

997+998+

expect(provider).toBeUndefined();

999+

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

1000+

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

1001+

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

1002+

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

1003+

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

1004+

});

1005+1006+

it("loads targeted bundled speech providers through compat when plugins are globally disabled", () => {

9621007

const cfg = { plugins: { enabled: false, allow: ["custom-plugin"] } } as OpenClawConfig;

9631008

const allowlistCompat = {

9641009

plugins: {

9651010

enabled: false,

966-

allow: ["custom-plugin", "google"],

1011+

allow: ["custom-plugin", "microsoft"],

9671012

},

9681013

} as OpenClawConfig;

9691014

const enablementCompat = {

9701015

plugins: {

9711016

enabled: true,

972-

allow: ["custom-plugin", "google"],

973-

entries: { google: { enabled: true } },

1017+

allow: ["custom-plugin", "microsoft"],

1018+

entries: { microsoft: { enabled: true } },

9741019

},

9751020

};

9761021

const loaded = createEmptyPluginRegistry();

977-

loaded.memoryEmbeddingProviders.push({

978-

pluginId: "google",

979-

pluginName: "google",

1022+

loaded.speechProviders.push({

1023+

pluginId: "microsoft",

1024+

pluginName: "microsoft",

9801025

source: "test",

9811026

provider: {

982-

id: "gemini",

983-

create: async () => ({ provider: null }),

1027+

id: "microsoft",

1028+

label: "microsoft",

1029+

aliases: ["edge"],

1030+

isConfigured: () => true,

1031+

synthesize: async () => ({

1032+

audioBuffer: Buffer.from("x"),

1033+

outputFormat: "mp3",

1034+

voiceCompatible: false,

1035+

fileExtension: ".mp3",

1036+

}),

9841037

},

9851038

} as never);

9861039

mocks.loadPluginManifestRegistry.mockReturnValue({

9871040

plugins: [

9881041

{

989-

id: "google",

1042+

id: "microsoft",

9901043

origin: "bundled",

991-

contracts: { memoryEmbeddingProviders: ["gemini"] },

1044+

contracts: { speechProviders: ["microsoft"] },

9921045

},

9931046

{

9941047

id: "openai",

9951048

origin: "bundled",

996-

contracts: { memoryEmbeddingProviders: ["openai"] },

1049+

contracts: { speechProviders: ["openai"] },

9971050

},

9981051

] as never,

9991052

diagnostics: [],

@@ -1005,24 +1058,24 @@ describe("resolvePluginCapabilityProviders", () => {

10051058

);

1006105910071060

const provider = resolvePluginCapabilityProvider({

1008-

key: "memoryEmbeddingProviders",

1009-

providerId: "gemini",

1061+

key: "speechProviders",

1062+

providerId: "microsoft",

10101063

cfg,

10111064

});

101210651013-

expect(provider?.id).toBe("gemini");

1066+

expect(provider?.id).toBe("microsoft");

10141067

expect(mocks.withBundledPluginAllowlistCompat).toHaveBeenCalledWith({

10151068

config: cfg,

1016-

pluginIds: ["google"],

1069+

pluginIds: ["microsoft"],

10171070

});

10181071

expect(mocks.withBundledPluginEnablementCompat).toHaveBeenCalledWith({

10191072

config: allowlistCompat,

1020-

pluginIds: ["google"],

1073+

pluginIds: ["microsoft"],

10211074

});

10221075

expect(mocks.resolveRuntimePluginRegistry).toHaveBeenCalledWith();

10231076

expect(mocks.resolveRuntimePluginRegistry).toHaveBeenCalledWith({

10241077

config: enablementCompat,

1025-

onlyPluginIds: ["google"],

1078+

onlyPluginIds: ["microsoft"],

10261079

activate: false,

10271080

});

10281081

});