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

推荐订阅源

O
OpenAI News
GbyAI
GbyAI
人人都是产品经理
人人都是产品经理
Last Week in AI
Last Week in AI
F
Fortinet All Blogs
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
罗磊的独立博客
爱范儿
爱范儿
B
Blog
C
Check Point Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园_首页
A
About on SuperTechFans
Engineering at Meta
Engineering at Meta
V
Visual Studio Blog
P
Proofpoint News Feed
小众软件
小众软件
Google DeepMind News
Google DeepMind News
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
G
Google Developers Blog
Y
Y Combinator Blog
Recorded Future
Recorded Future
博客园 - 聂微东
WordPress大学
WordPress大学
博客园 - 【当耐特】
腾讯CDC
T
Tailwind CSS Blog
The Register - Security
The Register - Security
V
V2EX
S
SegmentFault 最新的问题
IT之家
IT之家
D
Docker
I
InfoQ
大猫的无限游戏
大猫的无限游戏
云风的 BLOG
云风的 BLOG
Microsoft Azure Blog
Microsoft Azure Blog
月光博客
月光博客
Stack Overflow Blog
Stack Overflow Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Jina AI
Jina AI
The Cloudflare Blog
量子位
Microsoft Security Blog
Microsoft Security Blog
aimingoo的专栏
aimingoo的专栏
博客园 - 叶小钗
H
Help Net Security
MongoDB | Blog
MongoDB | Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
美团技术团队
B
Blog RSS Feed

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 matrix sdk broad matchers · openclaw/openclaw@1476cd1
steipete · 2026-05-10 · via Recent Commits to openclaw:main

@@ -18,6 +18,55 @@ function requestUrl(input: RequestInfo | URL | undefined): string {

1818

return input.url;

1919

}

202021+

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

22+

expect(typeof value).toBe("object");

23+

expect(value).not.toBeNull();

24+

if (typeof value !== "object" || value === null) {

25+

throw new Error(`${label} was not an object`);

26+

}

27+

return value as Record<string, unknown>;

28+

}

29+30+

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

31+

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

32+

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

33+

}

34+

}

35+36+

async function expectAbortError(promise: Promise<unknown>) {

37+

const err = await promise.catch((caught: unknown) => caught);

38+

expect(err).toBeInstanceOf(Error);

39+

expectRecordFields(requireRecord(err, "abort error"), {

40+

message: "Matrix startup aborted",

41+

name: "AbortError",

42+

});

43+

}

44+45+

function expectMockCallOptions(

46+

mock: ReturnType<typeof vi.fn>,

47+

callIndex: number,

48+

fields: Record<string, unknown>,

49+

) {

50+

const call = (mock.mock.calls as unknown[][])[callIndex]?.[0];

51+

expectRecordFields(requireRecord(call, `mock call ${callIndex + 1} options`), fields);

52+

}

53+54+

function expectSomeMockCallOptions(

55+

mock: ReturnType<typeof vi.fn>,

56+

fields: Record<string, unknown>,

57+

) {

58+

const calls = mock.mock.calls as unknown[][];

59+

const matched = calls.some((call) => {

60+

const arg = call[0];

61+

if (typeof arg !== "object" || arg === null) {

62+

return false;

63+

}

64+

const record = arg as Record<string, unknown>;

65+

return Object.entries(fields).every(([key, value]) => Object.is(record[key], value));

66+

});

67+

expect(matched).toBe(true);

68+

}

69+2170

const TEST_UNDICI_RUNTIME_DEPS_KEY = "__OPENCLAW_TEST_UNDICI_RUNTIME_DEPS__";

22712372

function clearTestUndiciRuntimeDepsOverride(): void {

@@ -296,7 +345,7 @@ describe("MatrixClient request hardening", () => {

296345

const client = new MatrixClient("https://matrix.example.org", "token");

297346

expect(client).toBeInstanceOf(MatrixClient);

298347299-

expect(lastCreateClientOpts).toMatchObject({

348+

expectRecordFields(requireRecord(lastCreateClientOpts, "create client options"), {

300349

baseUrl: "https://matrix.example.org",

301350

accessToken: "token",

302351

});

@@ -394,7 +443,7 @@ describe("MatrixClient request hardening", () => {

394443

const event = await client.getEvent("!room:example.org", "$poll");

395444396445

expect(matrixJsClient.decryptEventIfNeeded).toHaveBeenCalledTimes(1);

397-

expect(event).toMatchObject({

446+

expectRecordFields(requireRecord(event, "decrypted event"), {

398447

event_id: "$poll",

399448

type: "m.poll.start",

400449

sender: "@alice:example.org",

@@ -505,14 +554,16 @@ describe("MatrixClient request hardening", () => {

505554506555

const page = await client.getRelations("!room:example.org", "$poll", "m.reference");

507556508-

expect(page.originalEvent).toMatchObject({ event_id: "$poll", type: "m.poll.start" });

509-

expect(page.events).toEqual([

510-

expect.objectContaining({

511-

event_id: "$vote",

512-

type: "m.poll.response",

513-

sender: "@bob:example.org",

514-

}),

515-

]);

557+

expectRecordFields(requireRecord(page.originalEvent, "original relation event"), {

558+

event_id: "$poll",

559+

type: "m.poll.start",

560+

});

561+

expect(page.events).toHaveLength(1);

562+

expectRecordFields(requireRecord(page.events[0], "relation event"), {

563+

event_id: "$vote",

564+

type: "m.poll.response",

565+

sender: "@bob:example.org",

566+

});

516567

});

517568518569

it("blocks cross-protocol redirects when absolute endpoints are allowed", async () => {

@@ -1223,10 +1274,7 @@ describe("MatrixClient event bridge", () => {

1223127412241275

abortController.abort();

122512761226-

await expect(startPromise).rejects.toMatchObject({

1227-

message: "Matrix startup aborted",

1228-

name: "AbortError",

1229-

});

1277+

await expectAbortError(startPromise);

12301278

});

1231127912321280

it("aborts before post-ready startup work when shutdown races ready sync", async () => {

@@ -1250,10 +1298,7 @@ describe("MatrixClient event bridge", () => {

12501298

}

12511299

});

125213001253-

await expect(client.start({ abortSignal: abortController.signal })).rejects.toMatchObject({

1254-

message: "Matrix startup aborted",

1255-

name: "AbortError",

1256-

});

1301+

await expectAbortError(client.start({ abortSignal: abortController.signal }));

12571302

expect(bootstrapCryptoSpy).not.toHaveBeenCalled();

12581303

});

12591304

@@ -1367,11 +1412,11 @@ describe("MatrixClient crypto bootstrapping", () => {

1367141213681413

await client.start();

136914141370-

expect(bootstrapCrossSigning).toHaveBeenCalledWith(

1371-

expect.objectContaining({

1372-

authUploadDeviceSigningKeys: expect.any(Function),

1373-

}),

1415+

const crossSigningOptions = requireRecord(

1416+

(bootstrapCrossSigning.mock.calls as unknown[][])[0]?.[0],

1417+

"cross-signing options",

13741418

);

1419+

expect(crossSigningOptions.authUploadDeviceSigningKeys).toBeTypeOf("function");

13751420

});

1376142113771422

it("trusts the own Matrix identity after completed self-verification", async () => {

@@ -1623,12 +1668,8 @@ describe("MatrixClient crypto bootstrapping", () => {

16231668

debug?: (...args: unknown[]) => void;

16241669

getChild?: (namespace: string) => unknown;

16251670

} | null;

1626-

expect(logger).toEqual(

1627-

expect.objectContaining({

1628-

debug: expect.any(Function),

1629-

getChild: expect.any(Function),

1630-

}),

1631-

);

1671+

expect(logger?.debug).toBeTypeOf("function");

1672+

expect(logger?.getChild).toBeTypeOf("function");

16321673

});

1633167416341675

it("passes a custom sync filter to matrix-js-sdk startup", async () => {

@@ -1664,7 +1705,9 @@ describe("MatrixClient crypto bootstrapping", () => {

16641705

await client.start();

1665170616661707

expect(databasesSpy).toHaveBeenCalled();

1667-

expect(setIntervalSpy).toHaveBeenCalledWith(expect.any(Function), 60_000);

1708+

const intervalCall = setIntervalSpy.mock.calls[0] as unknown[];

1709+

expect(intervalCall[0]).toBeTypeOf("function");

1710+

expect(intervalCall[1]).toBe(60_000);

16681711

client.stop();

16691712

});

16701713

@@ -1747,7 +1790,7 @@ describe("MatrixClient crypto bootstrapping", () => {

1747179017481791

const status = await client.getOwnDeviceVerificationStatus();

17491792

expect(status.verified).toBe(true);

1750-

expect(status.backup).toMatchObject({

1793+

expectRecordFields(requireRecord(status.backup, "backup status"), {

17511794

serverVersion: null,

17521795

activeVersion: null,

17531796

trusted: null,

@@ -1864,7 +1907,7 @@ describe("MatrixClient crypto bootstrapping", () => {

1864190718651908

const status = await client.getDeviceVerificationStatus("@peer:example.org", "PEERDEVICE");

18661909

expect(getDeviceVerificationStatus).toHaveBeenCalledWith("@peer:example.org", "PEERDEVICE");

1867-

expect(status).toMatchObject({

1910+

expectRecordFields(requireRecord(status, "device verification status"), {

18681911

deviceId: "PEERDEVICE",

18691912

encryptionEnabled: true,

18701913

localVerified: true,

@@ -2476,7 +2519,7 @@ describe("MatrixClient crypto bootstrapping", () => {

24762519

});

2477252024782521

const backup = await client.getRoomKeyBackupStatus();

2479-

expect(backup).toMatchObject({

2522+

expectRecordFields(requireRecord(backup, "room key backup status"), {

24802523

serverVersion: "9",

24812524

activeVersion: "9",

24822525

trusted: true,

@@ -2520,7 +2563,7 @@ describe("MatrixClient crypto bootstrapping", () => {

25202563

});

2521256425222565

const backup = await client.getRoomKeyBackupStatus();

2523-

expect(backup).toMatchObject({

2566+

expectRecordFields(requireRecord(backup, "room key backup status"), {

25242567

serverVersion: "49262",

25252568

activeVersion: "49262",

25262569

trusted: true,

@@ -2801,9 +2844,7 @@ describe("MatrixClient crypto bootstrapping", () => {

28012844

expect(result.previousVersion).toBe("21868");

28022845

expect(result.deletedVersion).toBe("21868");

28032846

expect(result.createdVersion).toBe("21869");

2804-

expect(bootstrapSecretStorage).toHaveBeenCalledWith(

2805-

expect.objectContaining({ setupNewKeyBackup: true }),

2806-

);

2847+

expectSomeMockCallOptions(bootstrapSecretStorage, { setupNewKeyBackup: true });

28072848

expect(checkKeyBackupAndEnable).toHaveBeenCalledTimes(1);

28082849

});

28092850

@@ -2853,12 +2894,10 @@ describe("MatrixClient crypto bootstrapping", () => {

2853289428542895

expect(result.success).toBe(true);

28552896

expect(createRecoveryKeyFromPassphrase).toHaveBeenCalledTimes(1);

2856-

expect(bootstrapSecretStorage).toHaveBeenCalledWith(

2857-

expect.objectContaining({

2858-

setupNewKeyBackup: true,

2859-

setupNewSecretStorage: true,

2860-

}),

2861-

);

2897+

expectSomeMockCallOptions(bootstrapSecretStorage, {

2898+

setupNewKeyBackup: true,

2899+

setupNewSecretStorage: true,

2900+

});

28622901

});

2863290228642903

it("reloads the new backup decryption key after reset when the old cached key mismatches", async () => {

@@ -3007,12 +3046,10 @@ describe("MatrixClient crypto bootstrapping", () => {

30073046

expect(result.createdVersion).toBe("22000");

30083047

// bootstrapSecretStorage must have been called with setupNewSecretStorage: true

30093048

// because the pre-reset bad MAC status triggered forceNewSecretStorage.

3010-

expect(bootstrapSecretStorage).toHaveBeenCalledWith(

3011-

expect.objectContaining({

3012-

setupNewKeyBackup: true,

3013-

setupNewSecretStorage: true,

3014-

}),

3015-

);

3049+

expectSomeMockCallOptions(bootstrapSecretStorage, {

3050+

setupNewKeyBackup: true,

3051+

setupNewSecretStorage: true,

3052+

});

30163053

expect(loadSessionBackupPrivateKeyFromSecretStorage).toHaveBeenCalledTimes(1);

30173054

});

30183055

@@ -3064,12 +3101,10 @@ describe("MatrixClient crypto bootstrapping", () => {

30643101

expect(result.previousVersion).toBe(null);

30653102

expect(result.deletedVersion).toBe(null);

30663103

expect(result.createdVersion).toBe("22001");

3067-

expect(bootstrapSecretStorage).toHaveBeenCalledWith(

3068-

expect.objectContaining({

3069-

setupNewKeyBackup: true,

3070-

setupNewSecretStorage: true,

3071-

}),

3072-

);

3104+

expectSomeMockCallOptions(bootstrapSecretStorage, {

3105+

setupNewKeyBackup: true,

3106+

setupNewSecretStorage: true,

3107+

});

30733108

expect(loadSessionBackupPrivateKeyFromSecretStorage).toHaveBeenCalledTimes(1);

30743109

expect(doRequest).not.toHaveBeenCalledWith(

30753110

"DELETE",

@@ -3122,12 +3157,10 @@ describe("MatrixClient crypto bootstrapping", () => {

3122315731233158

expect(result.success).toBe(true);

31243159

expect(result.createdVersion).toBe("22002");

3125-

expect(bootstrapSecretStorage).toHaveBeenCalledWith(

3126-

expect.objectContaining({

3127-

setupNewKeyBackup: true,

3128-

setupNewSecretStorage: true,

3129-

}),

3130-

);

3160+

expectSomeMockCallOptions(bootstrapSecretStorage, {

3161+

setupNewKeyBackup: true,

3162+

setupNewSecretStorage: true,

3163+

});

31313164

expect(loadSessionBackupPrivateKeyFromSecretStorage).toHaveBeenCalledTimes(1);

31323165

});

31333166

@@ -3307,9 +3340,7 @@ describe("MatrixClient crypto bootstrapping", () => {

3307334033083341

expect(result.success).toBe(true);

33093342

expect(result.verification.backupVersion).toBe("7");

3310-

expect(bootstrapSecretStorage).toHaveBeenCalledWith(

3311-

expect.objectContaining({ setupNewKeyBackup: true }),

3312-

);

3343+

expectSomeMockCallOptions(bootstrapSecretStorage, { setupNewKeyBackup: true });

33133344

});

3314334533153346

it("does not recreate key backup during bootstrap when one already exists", async () => {