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

推荐订阅源

Security Archives - TechRepublic
Security Archives - TechRepublic
罗磊的独立博客
T
The Blog of Author Tim Ferriss
The GitHub Blog
The GitHub Blog
Apple Machine Learning Research
Apple Machine Learning Research
The Register - Security
The Register - Security
J
Java Code Geeks
V2EX - 技术
V2EX - 技术
Vercel News
Vercel News
N
News and Events Feed by Topic
腾讯CDC
P
Proofpoint News Feed
N
News | PayPal Newsroom
www.infosecurity-magazine.com
www.infosecurity-magazine.com
爱范儿
爱范儿
O
OpenAI News
酷 壳 – CoolShell
酷 壳 – CoolShell
月光博客
月光博客
Martin Fowler
Martin Fowler
Engineering at Meta
Engineering at Meta
D
Docker
Y
Y Combinator Blog
博客园 - 聂微东
G
Google Developers Blog
S
Security @ Cisco Blogs
Simon Willison's Weblog
Simon Willison's Weblog
S
Schneier on Security
H
Hackread – Cybersecurity News, Data Breaches, AI and More
S
SegmentFault 最新的问题
云风的 BLOG
云风的 BLOG
阮一峰的网络日志
阮一峰的网络日志
C
CXSECURITY Database RSS Feed - CXSecurity.com
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
C
CERT Recently Published Vulnerability Notes
I
Intezer
G
GRAHAM CLULEY
有赞技术团队
有赞技术团队
Attack and Defense Labs
Attack and Defense Labs
V
Visual Studio Blog
博客园 - Franky
博客园 - 三生石上(FineUI控件)
W
WeLiveSecurity
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Hugging Face - Blog
Hugging Face - Blog
Scott Helme
Scott Helme
T
Troy Hunt's Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
L
LINUX DO - 最新话题
C
Cybersecurity and Infrastructure Security Agency CISA

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: clear session binding broad matchers · openclaw/openclaw@b0c7249
steipete · 2026-05-10 · via Recent Commits to openclaw:main

@@ -79,6 +79,33 @@ function createRecord(input: SessionBindingBindInput): SessionBindingRecord {

7979

};

8080

}

818182+

function requireRecord(value: unknown, label: string): Record<string, unknown> {

83+

if (!value || typeof value !== "object" || Array.isArray(value)) {

84+

throw new Error(`expected ${label} to be a record`);

85+

}

86+

return value as Record<string, unknown>;

87+

}

88+89+

function expectRecordFields(record: Record<string, unknown>, fields: Record<string, unknown>) {

90+

for (const [key, value] of Object.entries(fields)) {

91+

expect(record[key]).toEqual(value);

92+

}

93+

}

94+95+

async function expectSessionBindingError(promise: Promise<unknown>, code: string) {

96+

try {

97+

await promise;

98+

} catch (error) {

99+

expect(requireRecord(error, "session binding error").code).toBe(code);

100+

return error;

101+

}

102+

throw new Error(`expected ${code} session binding error`);

103+

}

104+105+

function expectConversationFields(value: unknown, fields: Record<string, unknown>) {

106+

expectRecordFields(requireRecord(value, "conversation"), fields);

107+

}

108+82109

describe("session binding service", () => {

83110

beforeEach(() => {

84111

__testing.resetSessionBindingAdaptersForTests();

@@ -107,16 +134,13 @@ describe("session binding service", () => {

107134108135

expect(result.conversation.channel).toBe("demo-binding");

109136

expect(result.conversation.accountId).toBe("default");

110-

expect(bind).toHaveBeenCalledWith(

111-

expect.objectContaining({

112-

placement: "current",

113-

conversation: expect.objectContaining({

114-

channel: "demo-binding",

115-

accountId: "default",

116-

conversationId: "thread-1",

117-

}),

118-

}),

119-

);

137+

const bindInput = requireRecord(bind.mock.calls[0]?.[0], "bind input");

138+

expect(bindInput.placement).toBe("current");

139+

expectConversationFields(bindInput.conversation, {

140+

channel: "demo-binding",

141+

accountId: "default",

142+

conversationId: "thread-1",

143+

});

120144

});

121145122146

it("supports explicit child placement when adapter advertises it", async () => {

@@ -144,7 +168,7 @@ describe("session binding service", () => {

144168

});

145169146170

it("returns structured errors when adapter is unavailable", async () => {

147-

await expect(

171+

await expectSessionBindingError(

148172

getSessionBindingService().bind({

149173

targetSessionKey: "agent:main:subagent:child-1",

150174

targetKind: "subagent",

@@ -154,9 +178,8 @@ describe("session binding service", () => {

154178

conversationId: "thread-1",

155179

},

156180

}),

157-

).rejects.toMatchObject({

158-

code: "BINDING_ADAPTER_UNAVAILABLE",

159-

});

181+

"BINDING_ADAPTER_UNAVAILABLE",

182+

);

160183

});

161184162185

it("returns structured errors for unsupported placement", async () => {

@@ -183,11 +206,11 @@ describe("session binding service", () => {

183206

.catch((error) => error);

184207185208

expect(isSessionBindingError(rejected)).toBe(true);

186-

expect(rejected).toMatchObject({

209+

expectRecordFields(requireRecord(rejected, "session binding error"), {

187210

code: "BINDING_CAPABILITY_UNSUPPORTED",

188-

details: {

189-

placement: "child",

190-

},

211+

});

212+

expectRecordFields(requireRecord(rejected.details, "session binding details"), {

213+

placement: "child",

191214

});

192215

});

193216

@@ -200,7 +223,7 @@ describe("session binding service", () => {

200223

resolveByConversation: () => null,

201224

});

202225203-

await expect(

226+

await expectSessionBindingError(

204227

getSessionBindingService().bind({

205228

targetSessionKey: "agent:main:subagent:child-1",

206229

targetKind: "subagent",

@@ -210,9 +233,8 @@ describe("session binding service", () => {

210233

conversationId: "thread-1",

211234

},

212235

}),

213-

).rejects.toMatchObject({

214-

code: "BINDING_CREATE_FAILED",

215-

});

236+

"BINDING_CREATE_FAILED",

237+

);

216238

});

217239218240

it("reports adapter capabilities for command preflight messaging", () => {

@@ -280,56 +302,54 @@ describe("session binding service", () => {

280302

ttlMs: 60_000,

281303

});

282304283-

expect(bound).toMatchObject({

305+

expectRecordFields(requireRecord(bound, "bound record"), {

284306

bindingId: "generic:workspace\u241fdefault\u241f\u241fuser:U123",

285307

targetSessionKey: "agent:codex:acp:workspace-dm",

286308

targetKind: "session",

287-

conversation: {

288-

channel: "workspace",

289-

accountId: "default",

290-

conversationId: "user:U123",

291-

},

292309

status: "active",

293-

metadata: expect.objectContaining({

294-

label: "workspace-dm",

295-

}),

310+

});

311+

expectConversationFields(bound.conversation, {

312+

channel: "workspace",

313+

accountId: "default",

314+

conversationId: "user:U123",

315+

});

316+

expectRecordFields(requireRecord(bound.metadata, "metadata"), {

317+

label: "workspace-dm",

296318

});

297319298320

const resolved = service.resolveByConversation({

299321

channel: "workspace",

300322

accountId: "default",

301323

conversationId: "user:U123",

302324

});

303-

expect(resolved).toMatchObject({

325+

expectRecordFields(requireRecord(resolved, "resolved binding"), {

304326

bindingId: bound.bindingId,

305327

targetSessionKey: "agent:codex:acp:workspace-dm",

306328

});

307329

expect(service.listBySession("agent:codex:acp:workspace-dm")).toEqual([resolved]);

308330309331

service.touch(bound.bindingId, 1234);

310-

expect(

311-

service.resolveByConversation({

312-

channel: "workspace",

313-

accountId: "default",

314-

conversationId: "user:U123",

315-

})?.metadata,

316-

).toEqual(

317-

expect.objectContaining({

332+

expectRecordFields(

333+

requireRecord(

334+

service.resolveByConversation({

335+

channel: "workspace",

336+

accountId: "default",

337+

conversationId: "user:U123",

338+

})?.metadata,

339+

"touched metadata",

340+

),

341+

{

318342

label: "workspace-dm",

319343

lastActivityAt: 1234,

320-

}),

344+

},

321345

);

322346323-

await expect(

324-

service.unbind({

325-

targetSessionKey: "agent:codex:acp:workspace-dm",

326-

reason: "test cleanup",

327-

}),

328-

).resolves.toEqual([

329-

expect.objectContaining({

330-

bindingId: bound.bindingId,

331-

}),

332-

]);

347+

const unbound = await service.unbind({

348+

targetSessionKey: "agent:codex:acp:workspace-dm",

349+

reason: "test cleanup",

350+

});

351+

expect(unbound).toHaveLength(1);

352+

expect(unbound[0]?.bindingId).toBe(bound.bindingId);

333353

expect(

334354

service.resolveByConversation({

335355

channel: "workspace",

@@ -354,7 +374,7 @@ describe("session binding service", () => {

354374

placements: ["current"],

355375

});

356376357-

await expect(

377+

const rejected = await expectSessionBindingError(

358378

service.bind({

359379

targetSessionKey: "agent:codex:acp:teamchat-room",

360380

targetKind: "session",

@@ -365,32 +385,28 @@ describe("session binding service", () => {

365385

},

366386

placement: "child",

367387

}),

368-

).rejects.toMatchObject({

369-

code: "BINDING_CAPABILITY_UNSUPPORTED",

370-

details: {

371-

channel: "teamchat",

372-

accountId: "default",

373-

placement: "child",

374-

},

388+

"BINDING_CAPABILITY_UNSUPPORTED",

389+

);

390+

expectRecordFields(requireRecord(requireRecord(rejected, "rejected").details, "details"), {

391+

channel: "teamchat",

392+

accountId: "default",

393+

placement: "child",

375394

});

376395377-

await expect(

378-

service.bind({

379-

targetSessionKey: "agent:codex:acp:teamchat-room",

380-

targetKind: "session",

381-

conversation: {

382-

channel: "teamchat",

383-

accountId: "default",

384-

conversationId: "19:chatid@thread.v2",

385-

},

386-

}),

387-

).resolves.toMatchObject({

396+

const bound = await service.bind({

397+

targetSessionKey: "agent:codex:acp:teamchat-room",

398+

targetKind: "session",

388399

conversation: {

389400

channel: "teamchat",

390401

accountId: "default",

391402

conversationId: "19:chatid@thread.v2",

392403

},

393404

});

405+

expectConversationFields(bound.conversation, {

406+

channel: "teamchat",

407+

accountId: "default",

408+

conversationId: "19:chatid@thread.v2",

409+

});

394410

});

395411396412

it("does not advertise generic plugin bindings from a stale global registry when the active channel registry is empty", async () => {

@@ -419,7 +435,7 @@ describe("session binding service", () => {

419435

placements: [],

420436

});

421437422-

await expect(

438+

await expectSessionBindingError(

423439

service.bind({

424440

targetSessionKey: "agent:codex:acp:external-chat",

425441

targetKind: "session",

@@ -429,9 +445,8 @@ describe("session binding service", () => {

429445

conversationId: "room-1",

430446

},

431447

}),

432-

).rejects.toMatchObject({

433-

code: "BINDING_ADAPTER_UNAVAILABLE",

434-

});

448+

"BINDING_ADAPTER_UNAVAILABLE",

449+

);

435450

} finally {

436451

releasePinnedPluginChannelRegistry(pinnedEmptyChannelRegistry);

437452

}

@@ -525,22 +540,19 @@ describe("session binding service", () => {

525540526541

expect(second.__testing.getRegisteredAdapterKeys()).toEqual(["demo-binding:default"]);

527542528-

await expect(

529-

second.getSessionBindingService().bind({

530-

targetSessionKey: "agent:main:subagent:child-1",

531-

targetKind: "subagent",

532-

conversation: {

533-

channel: "demo-binding",

534-

accountId: "default",

535-

conversationId: "thread-1",

536-

},

537-

}),

538-

).resolves.toMatchObject({

539-

conversation: expect.objectContaining({

543+

const secondBound = await second.getSessionBindingService().bind({

544+

targetSessionKey: "agent:main:subagent:child-1",

545+

targetKind: "subagent",

546+

conversation: {

540547

channel: "demo-binding",

541548

accountId: "default",

542549

conversationId: "thread-1",

543-

}),

550+

},

551+

});

552+

expectConversationFields(secondBound.conversation, {

553+

channel: "demo-binding",

554+

accountId: "default",

555+

conversationId: "thread-1",

544556

});

545557

expect(firstBind).not.toHaveBeenCalled();

546558

expect(secondBind).toHaveBeenCalledTimes(1);

@@ -551,22 +563,19 @@ describe("session binding service", () => {

551563

adapter: secondAdapter,

552564

});

553565554-

await expect(

555-

second.getSessionBindingService().bind({

556-

targetSessionKey: "agent:main:subagent:child-2",

557-

targetKind: "subagent",

558-

conversation: {

559-

channel: "demo-binding",

560-

accountId: "default",

561-

conversationId: "thread-2",

562-

},

563-

}),

564-

).resolves.toMatchObject({

565-

conversation: expect.objectContaining({

566+

const firstBound = await second.getSessionBindingService().bind({

567+

targetSessionKey: "agent:main:subagent:child-2",

568+

targetKind: "subagent",

569+

conversation: {

566570

channel: "demo-binding",

567571

accountId: "default",

568572

conversationId: "thread-2",

569-

}),

573+

},

574+

});

575+

expectConversationFields(firstBound.conversation, {

576+

channel: "demo-binding",

577+

accountId: "default",

578+

conversationId: "thread-2",

570579

});

571580

expect(firstBind).toHaveBeenCalledTimes(1);

572581

expect(secondBind).toHaveBeenCalledTimes(1);

@@ -577,7 +586,7 @@ describe("session binding service", () => {

577586

adapter: firstAdapter,

578587

});

579588580-

await expect(

589+

await expectSessionBindingError(

581590

second.getSessionBindingService().bind({

582591

targetSessionKey: "agent:main:subagent:child-3",

583592

targetKind: "subagent",

@@ -587,9 +596,8 @@ describe("session binding service", () => {

587596

conversationId: "thread-3",

588597

},

589598

}),

590-

).rejects.toMatchObject({

591-

code: "BINDING_ADAPTER_UNAVAILABLE",

592-

});

599+

"BINDING_ADAPTER_UNAVAILABLE",

600+

);

593601594602

first.__testing.resetSessionBindingAdaptersForTests();

595603

});