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

推荐订阅源

Cyberwarzone
Cyberwarzone
V
Vulnerabilities – Threatpost
T
Tenable Blog
Forbes - Security
Forbes - Security
Simon Willison's Weblog
Simon Willison's Weblog
AWS News Blog
AWS News Blog
G
GRAHAM CLULEY
Know Your Adversary
Know Your Adversary
S
Securelist
C
Cybersecurity and Infrastructure Security Agency CISA
Project Zero
Project Zero
C
CXSECURITY Database RSS Feed - CXSecurity.com
V
Visual Studio Blog
WordPress大学
WordPress大学
Latest news
Latest news
K
Kaspersky official blog
T
Tailwind CSS Blog
T
Threat Research - Cisco Blogs
B
Blog RSS Feed
C
Cisco Blogs
博客园 - 聂微东
Martin Fowler
Martin Fowler
T
The Blog of Author Tim Ferriss
小众软件
小众软件
L
LangChain Blog
阮一峰的网络日志
阮一峰的网络日志
L
LINUX DO - 热门话题
Stack Overflow Blog
Stack Overflow Blog
罗磊的独立博客
P
Proofpoint News Feed
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
P
Privacy International News Feed
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
C
CERT Recently Published Vulnerability Notes
Cisco Talos Blog
Cisco Talos Blog
S
SegmentFault 最新的问题
Security Latest
Security Latest
Y
Y Combinator Blog
爱范儿
爱范儿
aimingoo的专栏
aimingoo的专栏
P
Privacy & Cybersecurity Law Blog
L
LINUX DO - 最新话题
月光博客
月光博客
The GitHub Blog
The GitHub Blog
博客园 - 三生石上(FineUI控件)
S
Security Affairs
P
Proofpoint News Feed
D
DataBreaches.Net
有赞技术团队
有赞技术团队
云风的 BLOG
云风的 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: trim doctor command hotspots · openclaw/openclaw@c66f16a test: isolate agent auth and spawn hotspots · openclaw/openclaw@9285935 test: stabilize MCP startup disposal race · openclaw/openclaw@dd9d2eb test: merge browser contract server suites · openclaw/openclaw@5817a76 test: narrow ollama provider discovery setup · openclaw/openclaw@a0d9598 build: declare qa-lab aimock runtime dependency · openclaw/openclaw@24431e5 test: speed up safe-bins exec harness · openclaw/openclaw@ee856ab test: preserve tool helpers in embedded runner mocks · openclaw/openclaw@acd86a0 refactor: move memory embeddings into provider plugins · openclaw/openclaw@77e6e4c test: reuse system-run temp fixtures · openclaw/openclaw@7e9ff0f test: trim hotspot wait overhead · openclaw/openclaw@12a59b0 Check: avoid duplicate boundary prep · openclaw/openclaw@baf11b8 test: reduce hotspot fixture overhead · openclaw/openclaw@3a59edd feat(ui): overhaul settings and slash command UX (#67819) thanks @Bun… · openclaw/openclaw@2cfb660 QA Matrix: exit cleanly on failure · openclaw/openclaw@42805d2 QA Matrix: isolate scenario coverage · openclaw/openclaw@7e659e1 Matrix: refresh crypto bootstrap state · openclaw/openclaw@94081d8 QA Lab: add provider registry · openclaw/openclaw@bb7e982 Matrix: add plugin changelog · openclaw/openclaw@4acab55 test: trim more hotspot overhead · openclaw/openclaw@f485311 test: trim remaining hotspot tests · openclaw/openclaw@6ba8626 test: narrow hotspot mocks · openclaw/openclaw@dbc8179 test: isolate gemini embedding request helpers · openclaw/openclaw@cd330f5 test: trim memory and mcp hotspots · openclaw/openclaw@fd48dfa test: slim provider registry mocks · openclaw/openclaw@2e08c77 test: harden Parallels update smoke · openclaw/openclaw@1a98090 feat: default Anthropic to Opus 4.7 · openclaw/openclaw@628b454 fix: harden node-host shell payload mutability checks · openclaw/openclaw@75c551e fix: land node-host approval binding for native binaries (#66731) (th… · openclaw/openclaw@29919bb CI: add daily schedule to CodeQL workflow (#67645) · openclaw/openclaw@69d25f5 fix(gateway): capture config hash after plugin auto-enable to prevent… · openclaw/openclaw@8c11210 fix: repair sanitized replay tool results before send (#67620) (thank… · openclaw/openclaw@c3c7a99 fix: restrict HTML timeout short-circuit to transient statuses · openclaw/openclaw@de129a6 fix: keep TUI watchdog bound to active run (#67401) (thanks @xantorres) · openclaw/openclaw@3525273 Gateway/skills: dedupe skills prefix-match + drop dead fallback on log · openclaw/openclaw@d7f489f Extensions/lmstudio: back off inference preload after consecutive fai… · openclaw/openclaw@b555214 TUI/streaming: add watchdog that resets the activity indicator after … · openclaw/openclaw@f44ab20 Agents/tool-loop: enable unknown-tool stream guard by default · openclaw/openclaw@36ed367 Gateway/skills: invalidate session skills snapshot on config write · openclaw/openclaw@b23d59a fix: classify HTML provider error pages correctly (#67642) (thanks @s… · openclaw/openclaw@e588e90 fix(skills): remove unused model-usage import (#67641) · openclaw/openclaw@55f05df docs(changelog): credit codex fix superseded PRs · openclaw/openclaw@e485f24 fix(openai-codex): normalize stale transport metadata in resolution a… · openclaw/openclaw@90801ba CI: pin Docker-related GitHub Actions (#67632) · openclaw/openclaw@f697b01 Android: modernize WebView and discovery API usage (#67627) · openclaw/openclaw@44a6e50 fix(deps): bump hono to 4.12.14 and @hono/node-server to 1.19.14 (GHS… · openclaw/openclaw@fbccc18 fix(deps): bump dompurify to 3.4.0 (#67614) · openclaw/openclaw@2c2dc00 CI: add explicit permissions to all workflow jobs (fixes code-scannin… · openclaw/openclaw@01b7516 fix: register bundled TTS providers and route overrides correctly (#6… · openclaw/openclaw@6ea3cdd fix: align host tilde paths with OS home (#62804) (thanks @stainlu) · openclaw/openclaw@ecfaf64 fix: flush creds queue before reconnect socket open (#67464) (thanks … · openclaw/openclaw@405c63f fix: strip standalone <function> tool call tags from visible text (#6… · openclaw/openclaw@78df859 fix(agents): preserve cli session metadata before transcript persist … · openclaw/openclaw@898fd04 docs(changelog): move cli transcript entry · openclaw/openclaw@c1817c6 fix(agents): normalize cli transcript api field · openclaw/openclaw@3a3fae0 docs(changelog): note cli transcript persistence · openclaw/openclaw@6c343f1 fix(agents): persist cli transcript turns · openclaw/openclaw@b8ef507 fix(msteams): harden security-sensitive flows (#65841) · openclaw/openclaw@c56b56e [Dashboard] Fix exec approval modal overflow for long command content… · openclaw/openclaw@053c5b0 Docs: remove QA changelog entry · openclaw/openclaw@7fd5771 QA: fix private runtime source loading (#67428) · openclaw/openclaw@d5933af docs(gateway): correct protocol.md schema path, hello-ok example, aut… · openclaw/openclaw@489404d CI: pin Node 22 runners to 22.18.0 · openclaw/openclaw@4ffa621 models.authStatus: normalize provider ids + tighten env-backed escape… · openclaw/openclaw@f2fdb9d Update CHANGELOG.md · openclaw/openclaw@7694a92 test(parallels): clean up npm update guard jobs · openclaw/openclaw@045ea7b Plugins: prefer scanDir override paths · openclaw/openclaw@b2974da fix(dreaming): default storage.mode to "separate" so phase blocks sto… · openclaw/openclaw@8c392f0 fix(memory-core): skip dreaming transcript ingestion via session stor… · openclaw/openclaw@a1b01f0 fix: dedupe replayed exec.finished node events (#67281) · openclaw/openclaw@5dcf526
test: tighten discord action handler assertions · openclaw/openclaw@6110d87
shakkernerd · 2026-05-11 · via Recent Commits to openclaw:main

@@ -21,6 +21,22 @@ function defaultActionOptions() {

2121

};

2222

}

232324+

function expectDiscordActionCall(params: {

25+

payload: unknown;

26+

cfg: OpenClawConfig;

27+

options?: unknown;

28+

}) {

29+

expect(handleDiscordActionMock).toHaveBeenCalledTimes(1);

30+

const [payload, cfg, options] = handleDiscordActionMock.mock.calls[0] ?? [];

31+

expect(payload).toEqual(params.payload);

32+

expect(cfg).toBe(params.cfg);

33+

if ("options" in params) {

34+

expect(options).toEqual(params.options);

35+

} else {

36+

expect(options).toBeUndefined();

37+

}

38+

}

39+2440

describe("handleDiscordMessageAction", () => {

2541

beforeEach(() => {

2642

handleDiscordActionMock.mockClear();

@@ -41,16 +57,20 @@ describe("handleDiscordMessageAction", () => {

4157

toolContext: { currentChannelProvider: "discord" },

4258

});

435944-

expect(handleDiscordActionMock).toHaveBeenCalledWith(

45-

expect.objectContaining({

60+

expectDiscordActionCall({

61+

payload: {

4662

action: "timeout",

63+

accountId: undefined,

4764

guildId: "guild-1",

4865

userId: "user-2",

4966

durationMinutes: 5,

67+

until: undefined,

68+

reason: undefined,

69+

deleteMessageDays: undefined,

5070

senderUserId: "trusted-sender-id",

51-

}),

71+

},

5272

cfg,

53-

);

73+

});

5474

});

55755676

it("falls back to toolContext.currentMessageId for reactions", async () => {

@@ -65,16 +85,18 @@ describe("handleDiscordMessageAction", () => {

6585

toolContext: { currentMessageId: "9001" },

6686

});

678768-

expect(handleDiscordActionMock).toHaveBeenCalledWith(

69-

expect.objectContaining({

88+

expectDiscordActionCall({

89+

payload: {

7090

action: "react",

91+

accountId: undefined,

7192

channelId: "123",

7293

messageId: "9001",

7394

emoji: "ok",

74-

}),

95+

remove: undefined,

96+

},

7597

cfg,

76-

defaultActionOptions(),

77-

);

98+

options: defaultActionOptions(),

99+

});

78100

});

7910180102

it("falls back to Discord toolContext.currentChannelId for reaction targets", async () => {

@@ -92,16 +114,18 @@ describe("handleDiscordMessageAction", () => {

92114

},

93115

});

9411695-

expect(handleDiscordActionMock).toHaveBeenCalledWith(

96-

expect.objectContaining({

117+

expectDiscordActionCall({

118+

payload: {

97119

action: "react",

120+

accountId: undefined,

98121

channelId: "user:U1",

99122

messageId: "9001",

100123

emoji: "ok",

101-

}),

124+

remove: undefined,

125+

},

102126

cfg,

103-

defaultActionOptions(),

104-

);

127+

options: defaultActionOptions(),

128+

});

105129

});

106130107131

it("falls back to Discord toolContext.currentChannelId for sends", async () => {

@@ -118,15 +142,25 @@ describe("handleDiscordMessageAction", () => {

118142

},

119143

});

120144121-

expect(handleDiscordActionMock).toHaveBeenCalledWith(

122-

expect.objectContaining({

145+

expectDiscordActionCall({

146+

payload: {

123147

action: "sendMessage",

148+

accountId: undefined,

124149

to: "channel:123",

125150

content: "hello",

126-

}),

151+

mediaUrl: undefined,

152+

filename: undefined,

153+

replyTo: undefined,

154+

components: undefined,

155+

embeds: undefined,

156+

asVoice: false,

157+

silent: false,

158+

__sessionKey: undefined,

159+

__agentId: undefined,

160+

},

127161

cfg,

128-

defaultActionOptions(),

129-

);

162+

options: defaultActionOptions(),

163+

});

130164

});

131165132166

it("maps upload-file to Discord sendMessage with media read context", async () => {

@@ -155,9 +189,10 @@ describe("handleDiscordMessageAction", () => {

155189

mediaReadFile,

156190

});

157191158-

expect(handleDiscordActionMock).toHaveBeenCalledWith(

159-

expect.objectContaining({

192+

expectDiscordActionCall({

193+

payload: {

160194

action: "sendMessage",

195+

accountId: undefined,

161196

to: "channel:123",

162197

content: "caption",

163198

mediaUrl: "/tmp/agent-root/image.png",

@@ -166,14 +201,14 @@ describe("handleDiscordMessageAction", () => {

166201

silent: true,

167202

__sessionKey: "session-1",

168203

__agentId: "agent-1",

169-

}),

204+

},

170205

cfg,

171-

{

206+

options: {

172207

mediaAccess,

173208

mediaLocalRoots: ["/tmp/agent-root"],

174209

mediaReadFile,

175210

},

176-

);

211+

});

177212

});

178213179214

it("falls back to Discord toolContext.currentChannelId for upload-file", async () => {

@@ -190,16 +225,22 @@ describe("handleDiscordMessageAction", () => {

190225

},

191226

});

192227193-

expect(handleDiscordActionMock).toHaveBeenCalledWith(

194-

expect.objectContaining({

228+

expectDiscordActionCall({

229+

payload: {

195230

action: "sendMessage",

231+

accountId: undefined,

196232

to: "channel:123",

197233

content: "",

198234

mediaUrl: "/tmp/agent-root/image.png",

199-

}),

235+

filename: undefined,

236+

replyTo: undefined,

237+

silent: false,

238+

__sessionKey: undefined,

239+

__agentId: undefined,

240+

},

200241

cfg,

201-

defaultActionOptions(),

202-

);

242+

options: defaultActionOptions(),

243+

});

203244

});

204245205246

it("requires a file path for upload-file", async () => {

@@ -232,20 +273,21 @@ describe("handleDiscordMessageAction", () => {

232273

mediaReadFile,

233274

});

234275235-

expect(handleDiscordActionMock).toHaveBeenCalledWith(

236-

expect.objectContaining({

276+

expectDiscordActionCall({

277+

payload: {

237278

action: "threadReply",

279+

accountId: undefined,

238280

channelId: "thread-123",

239281

content: "thread update",

240282

mediaUrl: "/tmp/agent-root/report.md",

241-

}),

283+

replyTo: undefined,

284+

},

242285

cfg,

243-

{

286+

options: {

244287

mediaLocalRoots: ["/tmp/agent-root"],

245-

mediaAccess: undefined,

246288

mediaReadFile,

247289

},

248-

);

290+

});

249291

});

250292251293

it("forwards top-level components on sends", async () => {

@@ -265,16 +307,25 @@ describe("handleDiscordMessageAction", () => {

265307

},

266308

});

267309268-

expect(handleDiscordActionMock).toHaveBeenCalledWith(

269-

expect.objectContaining({

310+

expectDiscordActionCall({

311+

payload: {

270312

action: "sendMessage",

313+

accountId: undefined,

271314

to: "channel:123",

272315

content: "hello",

316+

mediaUrl: undefined,

317+

filename: undefined,

318+

replyTo: undefined,

273319

components,

274-

}),

320+

embeds: undefined,

321+

asVoice: false,

322+

silent: false,

323+

__sessionKey: undefined,

324+

__agentId: undefined,

325+

},

275326

cfg,

276-

defaultActionOptions(),

277-

);

327+

options: defaultActionOptions(),

328+

});

278329

});

279330280331

it("does not use another provider's current target for Discord sends", async () => {