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

推荐订阅源

Microsoft Azure Blog
Microsoft Azure Blog
aimingoo的专栏
aimingoo的专栏
F
Fortinet All Blogs
Blog — PlanetScale
Blog — PlanetScale
GbyAI
GbyAI
MongoDB | Blog
MongoDB | Blog
月光博客
月光博客
The Cloudflare Blog
量子位
T
Tailwind CSS Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
B
Blog
MyScale Blog
MyScale Blog
T
The Blog of Author Tim Ferriss
The GitHub Blog
The GitHub Blog
G
Google Developers Blog
D
DataBreaches.Net
V
Visual Studio Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Last Week in AI
Last Week in AI
U
Unit 42
博客园 - 聂微东
有赞技术团队
有赞技术团队
A
About on SuperTechFans

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 matrix qa config assertions · openclaw/open...
steipete · 2026-05-11 · via Recent Commits to openclaw:main

@@ -61,21 +61,22 @@ describe("matrix qa config", () => {

6161

topology,

6262

});

636364-

expect(next.channels?.matrix?.accounts?.sut).toMatchObject({

65-

dm: {

66-

allowFrom: ["@driver:matrix-qa.test"],

67-

enabled: true,

68-

policy: "allowlist",

69-

},

70-

groupAllowFrom: ["@driver:matrix-qa.test"],

71-

groupPolicy: "allowlist",

72-

groups: {

73-

"!main:matrix-qa.test": { enabled: true, requireMention: true },

74-

"!secondary:matrix-qa.test": { enabled: true, requireMention: true },

75-

},

76-

replyToMode: "off",

77-

threadReplies: "inbound",

64+

const sut = next.channels?.matrix?.accounts?.sut;

65+

expect(sut?.dm?.allowFrom).toEqual(["@driver:matrix-qa.test"]);

66+

expect(sut?.dm?.enabled).toBe(true);

67+

expect(sut?.dm?.policy).toBe("allowlist");

68+

expect(sut?.groupAllowFrom).toEqual(["@driver:matrix-qa.test"]);

69+

expect(sut?.groupPolicy).toBe("allowlist");

70+

expect(sut?.groups?.["!main:matrix-qa.test"]).toEqual({

71+

enabled: true,

72+

requireMention: true,

73+

});

74+

expect(sut?.groups?.["!secondary:matrix-qa.test"]).toEqual({

75+

enabled: true,

76+

requireMention: true,

7877

});

78+

expect(sut?.replyToMode).toBe("off");

79+

expect(sut?.threadReplies).toBe("inbound");

7980

expect(next.messages?.groupChat?.visibleReplies).toBe("automatic");

8081

});

8182

@@ -134,58 +135,51 @@ describe("matrix qa config", () => {

134135

topology,

135136

});

136137137-

expect(next.agents?.defaults).toMatchObject({

138-

blockStreamingChunk: {

139-

breakPreference: "newline",

140-

maxChars: 48,

141-

minChars: 1,

142-

},

143-

blockStreamingCoalesce: {

144-

idleMs: 0,

145-

maxChars: 48,

146-

minChars: 1,

147-

},

138+

expect(next.agents?.defaults?.blockStreamingChunk).toEqual({

139+

breakPreference: "newline",

140+

maxChars: 48,

141+

minChars: 1,

148142

});

149-

expect(next.tools).toMatchObject({

150-

profile: "coding",

143+

expect(next.agents?.defaults?.blockStreamingCoalesce).toEqual({

144+

idleMs: 0,

145+

maxChars: 48,

146+

minChars: 1,

151147

});

152-

expect(next.channels?.matrix?.accounts?.["qa-observer-bot-source"]).toMatchObject({

153-

accessToken: "observer-token",

154-

enabled: false,

155-

homeserver: "http://127.0.0.1:28008/",

156-

userId: "@observer:matrix-qa.test",

148+

expect(next.tools?.profile).toBe("coding");

149+

const observer = next.channels?.matrix?.accounts?.["qa-observer-bot-source"];

150+

expect(observer?.accessToken).toBe("observer-token");

151+

expect(observer?.enabled).toBe(false);

152+

expect(observer?.homeserver).toBe("http://127.0.0.1:28008/");

153+

expect(observer?.userId).toBe("@observer:matrix-qa.test");

154+

const sut = next.channels?.matrix?.accounts?.sut;

155+

expect(sut?.allowBots).toBe("mentions");

156+

expect(sut?.autoJoin).toBe("allowlist");

157+

expect(sut?.autoJoinAllowlist).toEqual(["!dm:matrix-qa.test", "#ops:matrix-qa.test"]);

158+

expect(sut?.blockStreaming).toBe(true);

159+

expect(sut?.dm?.sessionScope).toBe("per-room");

160+

expect(sut?.dm?.threadReplies).toBe("off");

161+

expect(sut?.encryption).toBe(true);

162+

expect(sut?.groupAllowFrom).toEqual(["@driver:matrix-qa.test", "@observer:matrix-qa.test"]);

163+

expect(sut?.groups?.["!main:matrix-qa.test"]).toEqual({

164+

enabled: true,

165+

requireMention: true,

157166

});

158-

expect(next.channels?.matrix?.accounts?.sut).toMatchObject({

159-

allowBots: "mentions",

160-

autoJoin: "allowlist",

161-

autoJoinAllowlist: ["!dm:matrix-qa.test", "#ops:matrix-qa.test"],

162-

blockStreaming: true,

163-

dm: {

164-

sessionScope: "per-room",

165-

threadReplies: "off",

166-

},

167-

encryption: true,

168-

groupAllowFrom: ["@driver:matrix-qa.test", "@observer:matrix-qa.test"],

169-

groups: {

170-

"!main:matrix-qa.test": { enabled: true, requireMention: true },

171-

"!secondary:matrix-qa.test": {

172-

allowBots: false,

173-

enabled: true,

174-

requireMention: false,

175-

tools: {

176-

allow: ["sessions_spawn"],

177-

},

178-

},

179-

},

180-

replyToMode: "all",

181-

streaming: "quiet",

182-

threadBindings: {

183-

enabled: true,

184-

idleHours: 1,

185-

spawnSessions: true,

167+

expect(sut?.groups?.["!secondary:matrix-qa.test"]).toEqual({

168+

allowBots: false,

169+

enabled: true,

170+

requireMention: false,

171+

tools: {

172+

allow: ["sessions_spawn"],

186173

},

187-

threadReplies: "always",

188174

});

175+

expect(sut?.replyToMode).toBe("all");

176+

expect(sut?.streaming).toBe("quiet");

177+

expect(sut?.threadBindings).toEqual({

178+

enabled: true,

179+

idleHours: 1,

180+

spawnSessions: true,

181+

});

182+

expect(sut?.threadReplies).toBe("always");

189183

});

190184191185

it("rewrites the owned Matrix QA account instead of retaining stale override fields", () => {

@@ -339,22 +333,17 @@ describe("matrix qa config", () => {

339333

topology,

340334

});

341335342-

expect(next.approvals).toMatchObject({

343-

exec: { enabled: true, mode: "session" },

344-

plugin: { enabled: true, mode: "session" },

345-

});

346-

expect(next.channels?.matrix?.accounts?.sut).toMatchObject({

347-

chunkMode: "length",

348-

dm: {

349-

allowFrom: ["@driver:matrix-qa.test"],

350-

enabled: true,

351-

},

352-

execApprovals: {

353-

enabled: true,

354-

target: "both",

355-

},

356-

textChunkLimit: 280,

336+

expect(next.approvals?.exec).toEqual({ enabled: true, mode: "session" });

337+

expect(next.approvals?.plugin).toEqual({ enabled: true, mode: "session" });

338+

const sut = next.channels?.matrix?.accounts?.sut;

339+

expect(sut?.chunkMode).toBe("length");

340+

expect(sut?.dm?.allowFrom).toEqual(["@driver:matrix-qa.test"]);

341+

expect(sut?.dm?.enabled).toBe(true);

342+

expect(sut?.execApprovals).toEqual({

343+

enabled: true,

344+

target: "both",

357345

});

346+

expect(sut?.textChunkLimit).toBe(280);

358347

});

359348360349

it("resolves role-based Matrix sender allowlist overrides", () => {