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

推荐订阅源

L
LangChain Blog
S
SegmentFault 最新的问题
V
Visual Studio Blog
J
Java Code Geeks
宝玉的分享
宝玉的分享
美团技术团队
博客园 - Franky
酷 壳 – CoolShell
酷 壳 – CoolShell
H
Hackread – Cybersecurity News, Data Breaches, AI and More
有赞技术团队
有赞技术团队
量子位
Martin Fowler
Martin Fowler
MyScale Blog
MyScale Blog
Google DeepMind News
Google DeepMind News
Jina AI
Jina AI
博客园 - 叶小钗
月光博客
月光博客
P
Proofpoint News Feed
D
DataBreaches.Net
Blog — PlanetScale
Blog — PlanetScale
博客园_首页
腾讯CDC
Microsoft Azure Blog
Microsoft Azure Blog
Stack Overflow Blog
Stack Overflow 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: honor disabled plugin runtime deps · openclaw/opencl...
steipete · 2026-04-25 · via Recent Commits to openclaw:main

@@ -31,6 +31,20 @@ function writeBundledChannelPlugin(root: string, id: string, dependencies: Recor

3131

});

3232

}

333334+

function writeDefaultEnabledBundledChannelPlugin(

35+

root: string,

36+

id: string,

37+

dependencies: Record<string, string>,

38+

) {

39+

writeBundledChannelPlugin(root, id, dependencies);

40+

writeJson(path.join(root, "dist", "extensions", id, "openclaw.plugin.json"), {

41+

id,

42+

channels: [id],

43+

enabledByDefault: true,

44+

configSchema: { type: "object" },

45+

});

46+

}

47+3448

function createInstalledRuntimeDeps(): InstalledRuntimeDeps {

3549

return [];

3650

}

@@ -153,7 +167,7 @@ describe("doctor bundled plugin runtime deps", () => {

153167

expect(result.conflicts).toEqual([]);

154168

});

155169156-

it("can include disabled but configured bundled channel deps for doctor recovery", () => {

170+

it("does not include explicitly disabled but configured bundled channel deps", () => {

157171

const root = fs.mkdtempSync(path.join(os.tmpdir(), "openclaw-doctor-bundled-"));

158172

writeJson(path.join(root, "package.json"), { name: "openclaw" });

159173

writeBundledChannelPlugin(root, "telegram", { "telegram-only": "1.0.0" });

@@ -169,12 +183,77 @@ describe("doctor bundled plugin runtime deps", () => {

169183

},

170184

});

171185186+

expect(result.missing).toEqual([]);

187+

expect(result.conflicts).toEqual([]);

188+

});

189+190+

it("includes configured bundled channel deps for doctor recovery when not explicitly disabled", () => {

191+

const root = fs.mkdtempSync(path.join(os.tmpdir(), "openclaw-doctor-bundled-"));

192+

writeJson(path.join(root, "package.json"), { name: "openclaw" });

193+

writeBundledChannelPlugin(root, "telegram", { "telegram-only": "1.0.0" });

194+195+

const result = scanBundledPluginRuntimeDeps({

196+

packageRoot: root,

197+

includeConfiguredChannels: true,

198+

config: {

199+

plugins: { enabled: true },

200+

channels: {

201+

telegram: { botToken: "123:abc" },

202+

},

203+

},

204+

});

205+172206

expect(result.missing.map((dep) => `${dep.name}@${dep.version}`)).toEqual([

173207

"telegram-only@1.0.0",

174208

]);

175209

expect(result.conflicts).toEqual([]);

176210

});

177211212+

it("does not include configured bundled channel deps when the plugin entry is disabled", () => {

213+

const root = fs.mkdtempSync(path.join(os.tmpdir(), "openclaw-doctor-bundled-"));

214+

writeJson(path.join(root, "package.json"), { name: "openclaw" });

215+

writeBundledChannelPlugin(root, "telegram", { "telegram-only": "1.0.0" });

216+217+

const result = scanBundledPluginRuntimeDeps({

218+

packageRoot: root,

219+

includeConfiguredChannels: true,

220+

config: {

221+

plugins: {

222+

enabled: true,

223+

entries: {

224+

telegram: { enabled: false },

225+

},

226+

},

227+

channels: {

228+

telegram: { botToken: "123:abc" },

229+

},

230+

},

231+

});

232+233+

expect(result.missing).toEqual([]);

234+

expect(result.conflicts).toEqual([]);

235+

});

236+237+

it("lets channel disablement suppress default-enabled bundled channel deps", () => {

238+

const root = fs.mkdtempSync(path.join(os.tmpdir(), "openclaw-doctor-bundled-"));

239+

writeJson(path.join(root, "package.json"), { name: "openclaw" });

240+

writeDefaultEnabledBundledChannelPlugin(root, "demo", { "demo-only": "1.0.0" });

241+242+

const result = scanBundledPluginRuntimeDeps({

243+

packageRoot: root,

244+

includeConfiguredChannels: true,

245+

config: {

246+

plugins: { enabled: true },

247+

channels: {

248+

demo: { enabled: false },

249+

},

250+

},

251+

});

252+253+

expect(result.missing).toEqual([]);

254+

expect(result.conflicts).toEqual([]);

255+

});

256+178257

it("reports default-enabled bundled plugin deps", () => {

179258

const root = fs.mkdtempSync(path.join(os.tmpdir(), "openclaw-doctor-bundled-"));

180259

writeJson(path.join(root, "package.json"), { name: "openclaw" });

@@ -324,7 +403,7 @@ describe("doctor bundled plugin runtime deps", () => {

324403

{

325404

installRoot: root,

326405

missingSpecs: ["grammy@1.37.0"],

327-

installSpecs: ["@slack/web-api@7.15.1", "grammy@1.37.0"],

406+

installSpecs: ["grammy@1.37.0"],

328407

},

329408

]);

330409

});