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

推荐订阅源

MongoDB | Blog
MongoDB | Blog
V
V2EX
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
有赞技术团队
有赞技术团队
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
罗磊的独立博客
月光博客
月光博客
爱范儿
爱范儿
D
Docker
U
Unit 42
P
Proofpoint News Feed
I
InfoQ
腾讯CDC
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
L
LangChain Blog
V
Visual Studio Blog
IT之家
IT之家
Vercel News
Vercel News
G
Google Developers Blog
M
MIT News - Artificial intelligence
美团技术团队
The GitHub Blog
The GitHub Blog
阮一峰的网络日志
阮一峰的网络日志
MyScale Blog
MyScale 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 runtime schema loader assertions · openclaw...
steipete · 2026-05-10 · via Recent Commits to openclaw:main

@@ -165,6 +165,16 @@ async function readSchemaNodes() {

165165

return { channelProps, entryProps };

166166

}

167167168+

function getManifestRegistryLoadArg(index = 0): Record<string, unknown> | undefined {

169+

const arg = mockLoadPluginManifestRegistry.mock.calls[index]?.[0];

170+

return arg && typeof arg === "object" ? (arg as Record<string, unknown>) : undefined;

171+

}

172+173+

function getCurrentMetadataSnapshotArg(index = 0): Record<string, unknown> | undefined {

174+

const arg = mockGetCurrentPluginMetadataSnapshot.mock.calls[index]?.[0];

175+

return arg && typeof arg === "object" ? (arg as Record<string, unknown>) : undefined;

176+

}

177+168178

beforeAll(async () => {

169179

({ readBestEffortRuntimeConfigSchema, loadGatewayRuntimeConfigSchema } =

170180

await import("./runtime-schema.js"));

@@ -191,15 +201,11 @@ describe("readBestEffortRuntimeConfigSchema", () => {

191201192202

const { channelProps, entryProps } = await readSchemaNodes();

193203194-

expect(mockLoadPluginManifestRegistry).toHaveBeenCalledWith(

195-

expect.objectContaining({

196-

config: { plugins: { entries: { demo: { enabled: true } } } },

197-

}),

198-

);

199-

expect(mockLoadPluginManifestRegistry.mock.calls[0]?.[0]).not.toHaveProperty("cache", false);

200-

expect(mockLoadPluginManifestRegistry.mock.calls[0]?.[0]).not.toHaveProperty(

201-

"bundledChannelConfigCollector",

202-

);

204+

expect(mockLoadPluginManifestRegistry).toHaveBeenCalledTimes(1);

205+

const loadArg = getManifestRegistryLoadArg();

206+

expect(loadArg?.config).toEqual({ plugins: { entries: { demo: { enabled: true } } } });

207+

expect(loadArg).not.toHaveProperty("cache", false);

208+

expect(loadArg).not.toHaveProperty("bundledChannelConfigCollector");

203209

expect(channelProps).toHaveProperty("telegram");

204210

expect(channelProps).toHaveProperty("matrix");

205211

expect(entryProps).toHaveProperty("demo");

@@ -210,15 +216,11 @@ describe("readBestEffortRuntimeConfigSchema", () => {

210216211217

const { channelProps, entryProps } = await readSchemaNodes();

212218213-

expect(mockLoadPluginManifestRegistry).toHaveBeenCalledWith(

214-

expect.objectContaining({

215-

config: { plugins: { enabled: true } },

216-

}),

217-

);

218-

expect(mockLoadPluginManifestRegistry.mock.calls[0]?.[0]).not.toHaveProperty("cache", false);

219-

expect(mockLoadPluginManifestRegistry.mock.calls[0]?.[0]).not.toHaveProperty(

220-

"bundledChannelConfigCollector",

221-

);

219+

expect(mockLoadPluginManifestRegistry).toHaveBeenCalledTimes(1);

220+

const loadArg = getManifestRegistryLoadArg();

221+

expect(loadArg?.config).toEqual({ plugins: { enabled: true } });

222+

expect(loadArg).not.toHaveProperty("cache", false);

223+

expect(loadArg).not.toHaveProperty("bundledChannelConfigCollector");

222224

expect(channelProps).toHaveProperty("telegram");

223225

expect(channelProps).toHaveProperty("slack");

224226

expect(entryProps?.demo).toBeUndefined();

@@ -238,14 +240,10 @@ describe("loadGatewayRuntimeConfigSchema", () => {

238240

const channelsNode = schema.properties?.channels as Record<string, unknown> | undefined;

239241

const channelProps = channelsNode?.properties as Record<string, unknown> | undefined;

240242241-

expect(mockLoadPluginManifestRegistry).toHaveBeenCalledWith(

242-

expect.objectContaining({

243-

config: { plugins: { entries: { demo: { enabled: true } } } },

244-

}),

245-

);

246-

expect(mockLoadPluginManifestRegistry.mock.calls[0]?.[0]).not.toHaveProperty(

247-

"bundledChannelConfigCollector",

248-

);

243+

expect(mockLoadPluginManifestRegistry).toHaveBeenCalledTimes(1);

244+

const loadArg = getManifestRegistryLoadArg();

245+

expect(loadArg?.config).toEqual({ plugins: { entries: { demo: { enabled: true } } } });

246+

expect(loadArg).not.toHaveProperty("bundledChannelConfigCollector");

249247

expect(channelProps).toHaveProperty("telegram");

250248

expect(channelProps).toHaveProperty("matrix");

251249

});

@@ -288,11 +286,9 @@ describe("loadGatewayRuntimeConfigSchema", () => {

288286

const channelsNode = schema.properties?.channels as Record<string, unknown> | undefined;

289287

const channelProps = channelsNode?.properties as Record<string, unknown> | undefined;

290288291-

expect(mockGetCurrentPluginMetadataSnapshot).toHaveBeenCalledWith(

292-

expect.objectContaining({

293-

config: { plugins: { entries: { demo: { enabled: true } } } },

294-

}),

295-

);

289+

expect(mockGetCurrentPluginMetadataSnapshot).toHaveBeenCalledTimes(1);

290+

const metadataArg = getCurrentMetadataSnapshotArg();

291+

expect(metadataArg?.config).toEqual({ plugins: { entries: { demo: { enabled: true } } } });

296292

expect(mockLoadPluginManifestRegistry).not.toHaveBeenCalled();

297293

expect(channelProps).toHaveProperty("telegram");

298294

expect(JSON.stringify(channelProps?.telegram)).toContain("botToken");