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

推荐订阅源

D
DataBreaches.Net
有赞技术团队
有赞技术团队
Jina AI
Jina AI
H
Help Net Security
D
Docker
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Blog — PlanetScale
Blog — PlanetScale
Hugging Face - Blog
Hugging Face - Blog
罗磊的独立博客
MyScale Blog
MyScale Blog
N
Netflix TechBlog - Medium
B
Blog RSS Feed
Martin Fowler
Martin Fowler
WordPress大学
WordPress大学
T
The Blog of Author Tim Ferriss
U
Unit 42
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
MongoDB | Blog
MongoDB | Blog
美团技术团队
M
MIT News - Artificial intelligence
阮一峰的网络日志
阮一峰的网络日志
博客园 - 司徒正美
Microsoft Security Blog
Microsoft Security Blog
IT之家
IT之家

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 requester origin assertions · openclaw/open...
steipete · 2026-05-10 · via Recent Commits to openclaw:main

@@ -26,6 +26,15 @@ describe("resolveRequesterOriginForChild", () => {

2626

})?.accountId;

2727

}

282829+

function expectOrigin(

30+

origin: ReturnType<typeof resolveRequesterOriginForChild>,

31+

expected: { channel: string; accountId: string; to: string },

32+

) {

33+

expect(origin?.channel).toBe(expected.channel);

34+

expect(origin?.accountId).toBe(expected.accountId);

35+

expect(origin?.to).toBe(expected.to);

36+

}

37+2938

it.each([

3039

["channel:conversation-a", "channel:conversation-a", "channel"],

3140

["dm:conversation-a", "dm:conversation-a", "direct"],

@@ -46,7 +55,7 @@ describe("resolveRequesterOriginForChild", () => {

4655

],

4756

} as OpenClawConfig;

485749-

expect(

58+

expectOrigin(

5059

resolveRequesterOriginForChild({

5160

cfg,

5261

targetAgentId: "bot-alpha",

@@ -55,11 +64,12 @@ describe("resolveRequesterOriginForChild", () => {

5564

requesterAccountId: "bot-beta",

5665

requesterTo: to,

5766

}),

58-

).toMatchObject({

59-

channel: "qa-channel",

60-

accountId: "bot-alpha-qa",

61-

to,

62-

});

67+

{

68+

channel: "qa-channel",

69+

accountId: "bot-alpha-qa",

70+

to,

71+

},

72+

);

6373

},

6474

);

6575

@@ -213,7 +223,7 @@ describe("resolveRequesterOriginForChild", () => {

213223

],

214224

} as OpenClawConfig;

215225216-

expect(

226+

expectOrigin(

217227

resolveRequesterOriginForChild({

218228

cfg,

219229

targetAgentId: "bot-alpha",

@@ -222,11 +232,12 @@ describe("resolveRequesterOriginForChild", () => {

222232

requesterAccountId: "bot-beta",

223233

requesterTo: to,

224234

}),

225-

).toMatchObject({

226-

channel: "msteams",

227-

accountId: "bot-alpha-teams",

228-

to,

229-

});

235+

{

236+

channel: "msteams",

237+

accountId: "bot-alpha-teams",

238+

to,

239+

},

240+

);

230241

});

231242232243

it("keeps explicit channel prefixes ahead of ids that start with direct marker characters", () => {

@@ -244,7 +255,7 @@ describe("resolveRequesterOriginForChild", () => {

244255

],

245256

} as OpenClawConfig;

246257247-

expect(

258+

expectOrigin(

248259

resolveRequesterOriginForChild({

249260

cfg,

250261

targetAgentId: "bot-alpha",

@@ -253,11 +264,12 @@ describe("resolveRequesterOriginForChild", () => {

253264

requesterAccountId: "bot-beta",

254265

requesterTo: to,

255266

}),

256-

).toMatchObject({

257-

channel: "qa-channel",

258-

accountId: "bot-alpha-qa",

259-

to,

260-

});

267+

{

268+

channel: "qa-channel",

269+

accountId: "bot-alpha-qa",

270+

to,

271+

},

272+

);

261273

});

262274263275

it("uses requester group space before selecting a scoped target-agent account", () => {

@@ -285,7 +297,7 @@ describe("resolveRequesterOriginForChild", () => {

285297

],

286298

} as OpenClawConfig;

287299288-

expect(

300+

expectOrigin(

289301

resolveRequesterOriginForChild({

290302

cfg,

291303

targetAgentId: "bot-alpha",

@@ -295,11 +307,12 @@ describe("resolveRequesterOriginForChild", () => {

295307

requesterTo: to,

296308

requesterGroupSpace: "guild-current",

297309

}),

298-

).toMatchObject({

299-

channel: "discord",

300-

accountId: "bot-alpha-current-guild",

301-

to,

302-

});

310+

{

311+

channel: "discord",

312+

accountId: "bot-alpha-current-guild",

313+

to,

314+

},

315+

);

303316

});

304317305318

it("still peels channel id plus kind wrappers before peer lookup", () => {

@@ -317,7 +330,7 @@ describe("resolveRequesterOriginForChild", () => {

317330

],

318331

} as OpenClawConfig;

319332320-

expect(

333+

expectOrigin(

321334

resolveRequesterOriginForChild({

322335

cfg,

323336

targetAgentId: "bot-alpha",

@@ -326,10 +339,11 @@ describe("resolveRequesterOriginForChild", () => {

326339

requesterAccountId: "bot-beta",

327340

requesterTo: to,

328341

}),

329-

).toMatchObject({

330-

channel: "line",

331-

accountId: "bot-alpha-line",

332-

to,

333-

});

342+

{

343+

channel: "line",

344+

accountId: "bot-alpha-line",

345+

to,

346+

},

347+

);

334348

});

335349

});