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

推荐订阅源

云风的 BLOG
云风的 BLOG
M
MIT News - Artificial intelligence
Recent Announcements
Recent Announcements
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Stack Overflow Blog
Stack Overflow Blog
J
Java Code Geeks
Microsoft Azure Blog
Microsoft Azure Blog
罗磊的独立博客
博客园 - 【当耐特】
H
Help Net Security
腾讯CDC
大猫的无限游戏
大猫的无限游戏
GbyAI
GbyAI
Last Week in AI
Last Week in AI
Jina AI
Jina AI
博客园 - 聂微东
Blog — PlanetScale
Blog — PlanetScale
A
About on SuperTechFans
Apple Machine Learning Research
Apple Machine Learning Research
P
Proofpoint News Feed
Y
Y Combinator Blog
C
Check Point 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: guard matrix mock calls · openclaw/openclaw@1e46929
steipete · 2026-05-12 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -55,7 +55,7 @@ function expectSingleDoneEvent(events: StreamEvent[]) {

5555

}

5656
5757

function requireMockCallArg(mock: { mock: { calls: unknown[][] } }, label: string) {

58-

const call = mock.mock.calls[0];

58+

const call = mock.mock.calls.at(0);

5959

if (!call) {

6060

throw new Error(`expected ${label} call`);

6161

}

Original file line numberDiff line numberDiff line change

@@ -15,7 +15,7 @@ const { matrixMessageActions } = await import("./actions.js");

1515

const profileAction = "set-profile" as ChannelMessageActionContext["action"];

1616
1717

function matrixActionCall() {

18-

const call = mocks.handleMatrixAction.mock.calls[0];

18+

const call = mocks.handleMatrixAction.mock.calls.at(0);

1919

if (!call) {

2020

throw new Error("expected handleMatrixAction call");

2121

}

Original file line numberDiff line numberDiff line change

@@ -26,7 +26,7 @@ describe("matrix resolver adapter", () => {

2626

});

2727
2828

expect(resolveMatrixTargetsMock).toHaveBeenCalledTimes(1);

29-

const [forwarded] = resolveMatrixTargetsMock.mock.calls[0] as unknown as [

29+

const [forwarded] = resolveMatrixTargetsMock.mock.calls.at(0) as unknown as [

3030

{

3131

accountId: string;

3232

cfg: { channels: { matrix: Record<string, never> } };

Original file line numberDiff line numberDiff line change

@@ -1512,7 +1512,7 @@ describe("matrix CLI verification commands", () => {

15121512

});

15131513
15141514

expect(process.exitCode).toBe(1);

1515-

expect(JSON.parse(String(stdoutWriteMock.mock.calls[0]?.[0]))).toEqual({

1515+

expect(JSON.parse(String(stdoutWriteMock.mock.calls.at(0)?.[0]))).toEqual({

15161516

error: "Matrix requires --homeserver",

15171517

});

15181518

});

Original file line numberDiff line numberDiff line change

@@ -214,7 +214,7 @@ describe("FileBackedMatrixSyncStore", () => {

214214

await vi.advanceTimersByTimeAsync(1);

215215

await Promise.resolve();

216216

expect(writeSpy).toHaveBeenCalledTimes(1);

217-

expect(writeSpy.mock.calls[0]).toEqual([

217+

expect(writeSpy.mock.calls.at(0)).toEqual([

218218

storagePath,

219219

{

220220

version: 1,

Original file line numberDiff line numberDiff line change

@@ -106,7 +106,7 @@ describe("matrix client storage paths", () => {

106106
107107

function expectFallbackMigrationSnapshot(env: NodeJS.ProcessEnv): void {

108108

expect(maybeCreateMatrixMigrationSnapshotMock).toHaveBeenCalledTimes(1);

109-

const [params] = maybeCreateMatrixMigrationSnapshotMock.mock.calls[0] ?? [];

109+

const [params] = maybeCreateMatrixMigrationSnapshotMock.mock.calls.at(0) ?? [];

110110

expect(params).toEqual({

111111

env,

112112

log: {

Original file line numberDiff line numberDiff line change

@@ -27,7 +27,7 @@ function expectDirectMappingWrite(

2727

roomIds: string[],

2828

) {

2929

expect(setAccountData).toHaveBeenCalledTimes(1);

30-

const [eventType, content] = setAccountData.mock.calls[0] ?? [];

30+

const [eventType, content] = setAccountData.mock.calls.at(0) ?? [];

3131

expect(eventType).toBe(EventType.Direct);

3232

expect((content as Record<string, string[]> | undefined)?.[remoteUserId]).toEqual(roomIds);

3333

}

Original file line numberDiff line numberDiff line change

@@ -169,7 +169,7 @@ describe("runMatrixStartupMaintenance", () => {

169169

await runMatrixStartupMaintenance(params, deps);

170170
171171

expect(deps.syncMatrixOwnProfile).toHaveBeenCalledTimes(1);

172-

const [profileSyncParams] = vi.mocked(deps.syncMatrixOwnProfile).mock.calls[0] ?? [];

172+

const [profileSyncParams] = vi.mocked(deps.syncMatrixOwnProfile).mock.calls.at(0) ?? [];

173173

if (!profileSyncParams) {

174174

throw new Error("profile sync params missing");

175175

}

Original file line numberDiff line numberDiff line change

@@ -89,7 +89,7 @@ describe("Matrix IndexedDB persistence", () => {

8989

const restored = await restoreIdbFromDisk(snapshotPath);

9090

expect(restored).toBe(false);

9191

expect(warnSpy).toHaveBeenCalledTimes(1);

92-

const [scope, message, error] = warnSpy.mock.calls[0] ?? [];

92+

const [scope, message, error] = warnSpy.mock.calls.at(0) ?? [];

9393

expect(scope).toBe("IdbPersistence");

9494

expect(message).toBe(`Failed to restore IndexedDB snapshot from ${snapshotPath}:`);

9595

expect(error).toBeInstanceOf(Error);

Original file line numberDiff line numberDiff line change

@@ -16,7 +16,7 @@ describe("ConsoleLogger", () => {

1616

"Authorization: Bearer 123456:abcdefghijklmnopqrstuvwxyzABCDEFG",

1717

);

1818
19-

const message = spy.mock.calls[0]?.[0];

19+

const message = spy.mock.calls.at(0)?.[0];

2020

expect(typeof message).toBe("string");

2121

expect(message).toContain("Authorization: Bearer");

2222

expect(message).not.toContain("123456:abcdefghijklmnopqrstuvwxyzABCDEFG");