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

推荐订阅源

G
Google Developers Blog
博客园 - 聂微东
J
Java Code Geeks
Engineering at Meta
Engineering at Meta
Jina AI
Jina AI
D
Docker
B
Blog
S
SegmentFault 最新的问题
宝玉的分享
宝玉的分享
D
DataBreaches.Net
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Y
Y Combinator Blog
N
Netflix TechBlog - Medium
月光博客
月光博客
F
Fortinet All Blogs
爱范儿
爱范儿
H
Help Net Security
腾讯CDC
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
WordPress大学
WordPress大学
The Cloudflare Blog
有赞技术团队
有赞技术团队
T
Tailwind CSS Blog
U
Unit 42

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 agent three-hit mock calls · openclaw/opencla...
steipete · 2026-05-12 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -185,10 +185,10 @@ describe("startAcpSpawnParentStreamRelay", () => {

185185

expect(progressOptions?.contextKey).toBe("acp-spawn:run-cron:progress");

186186

expect(progressOptions?.sessionKey).toBe("global");

187187

expect(progressOptions?.trusted).toBe(false);

188-

const heartbeatOptions = requestHeartbeatMock.mock.calls[0]?.[0];

188+

const heartbeatOptions = requestHeartbeatMock.mock.calls.at(0)?.[0];

189189

expect(heartbeatOptions?.agentId).toBe("ops");

190190

expect(heartbeatOptions?.reason).toBe("acp:spawn:stream");

191-

expect(requestHeartbeatMock.mock.calls[0]?.[0]).not.toHaveProperty("sessionKey");

191+

expect(requestHeartbeatMock.mock.calls.at(0)?.[0]).not.toHaveProperty("sessionKey");

192192

relay.dispose();

193193

});

194194

@@ -421,7 +421,7 @@ describe("startAcpSpawnParentStreamRelay", () => {

421421

sessionKey: "agent:codex:acp:child-1",

422422

});

423423

expect(resolveSessionFilePathMock).toHaveBeenCalledTimes(1);

424-

const [sessionId, entry, options] = resolveSessionFilePathMock.mock.calls[0] as [

424+

const [sessionId, entry, options] = resolveSessionFilePathMock.mock.calls.at(0) as [

425425

string,

426426

{ sessionId?: unknown },

427427

{ storePath?: unknown },

Original file line numberDiff line numberDiff line change

@@ -364,7 +364,7 @@ function expectSessionPatchFields(expected: Record<string, unknown>): void {

364364

}

365365
366366

function expectInitializeSessionFields(expected: Record<string, unknown>): Record<string, unknown> {

367-

return expectRecordFields(hoisted.initializeSessionMock.mock.calls[0]?.[0], expected);

367+

return expectRecordFields(hoisted.initializeSessionMock.mock.calls.at(0)?.[0], expected);

368368

}

369369
370370

function expectBindingCallFields(expected: {

@@ -1942,7 +1942,7 @@ describe("spawnAcpDirect", () => {

19421942

expect(accepted.streamLogPath).toBeUndefined();

19431943

expect(hoisted.startAcpSpawnParentStreamRelayMock).not.toHaveBeenCalled();

19441944

if (expectTranscriptPersistence) {

1945-

expectRecordFields(hoisted.resolveSessionTranscriptFileMock.mock.calls[0]?.[0], {

1945+

expectRecordFields(hoisted.resolveSessionTranscriptFileMock.mock.calls.at(0)?.[0], {

19461946

sessionId: "sess-123",

19471947

storePath: "/tmp/codex-sessions.json",

19481948

agentId: "codex",

@@ -2162,7 +2162,7 @@ describe("spawnAcpDirect", () => {

21622162

expect(relayRuns).toContain(agentCall?.params?.idempotencyKey);

21632163

expect(relayRuns).toContain(accepted.runId);

21642164

const streamPathInput = expectRecordFields(

2165-

hoisted.resolveAcpSpawnStreamLogPathMock.mock.calls[0]?.[0],

2165+

hoisted.resolveAcpSpawnStreamLogPathMock.mock.calls.at(0)?.[0],

21662166

{},

21672167

);

21682168

expect(streamPathInput.childSessionKey).toMatch(/^agent:codex:acp:/);

Original file line numberDiff line numberDiff line change

@@ -64,15 +64,15 @@ function expectExecTarget(

6464

}

6565
6666

function requireSystemEventCall(): [string, Record<string, unknown>] {

67-

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

67+

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

6868

if (!call) {

6969

throw new Error("expected system event call");

7070

}

7171

return call as [string, Record<string, unknown>];

7272

}

7373
7474

function requireHeartbeatCall(): Record<string, unknown> {

75-

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

75+

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

7676

if (!call) {

7777

throw new Error("expected heartbeat call");

7878

}

@@ -537,7 +537,7 @@ describe("emitExecSystemEvent", () => {

537537

expect(heartbeatParams.agentId).toBe("ops");

538538

expect(heartbeatParams.coalesceMs).toBe(0);

539539

expect(heartbeatParams.reason).toBe("exec-event");

540-

expect(requestHeartbeatMock.mock.calls[0]?.[0]).not.toHaveProperty("sessionKey");

540+

expect(requestHeartbeatMock.mock.calls.at(0)?.[0]).not.toHaveProperty("sessionKey");

541541

});

542542
543543

it("keeps wake unscoped for non-agent session keys", () => {

Original file line numberDiff line numberDiff line change

@@ -78,7 +78,7 @@ describe("executePreparedCliRun supervisor output capture", () => {

7878

});

7979
8080

const result = await executePreparedCliRun(buildPreparedCliRunContext({ output: "text" }));

81-

const spawnInput = supervisorSpawnMock.mock.calls[0]?.[0] as SupervisorSpawnInput;

81+

const spawnInput = supervisorSpawnMock.mock.calls.at(0)?.[0] as SupervisorSpawnInput;

8282
8383

expect(spawnInput.captureOutput).toBe(false);

8484

expect(result.rawText).toBe(fullText);

@@ -107,7 +107,7 @@ describe("executePreparedCliRun supervisor output capture", () => {

107107

await expect(

108108

executePreparedCliRun(buildPreparedCliRunContext({ output: "text" })),

109109

).rejects.toThrow("CLI stdout exceeded");

110-

const spawnInput = supervisorSpawnMock.mock.calls[0]?.[0] as SupervisorSpawnInput;

110+

const spawnInput = supervisorSpawnMock.mock.calls.at(0)?.[0] as SupervisorSpawnInput;

111111
112112

expect(spawnInput.captureOutput).toBe(false);

113113

});

@@ -281,7 +281,7 @@ describe("executePreparedCliRun supervisor output capture", () => {

281281

const result = await executePreparedCliRun(

282282

buildPreparedCliRunContext({ output: "jsonl", provider: "claude-cli" }),

283283

);

284-

const spawnInput = supervisorSpawnMock.mock.calls[0]?.[0] as SupervisorSpawnInput;

284+

const spawnInput = supervisorSpawnMock.mock.calls.at(0)?.[0] as SupervisorSpawnInput;

285285
286286

expect(spawnInput.captureOutput).toBe(false);

287287

expect(result.text).toBe("Hello world");

Original file line numberDiff line numberDiff line change

@@ -32,7 +32,7 @@ describe("resolveVisibleModelCatalog", () => {

3232

});

3333
3434

expect(createProviderAuthCheckerMock).toHaveBeenCalledTimes(1);

35-

const checkerOptions = createProviderAuthCheckerMock.mock.calls[0]?.[0];

35+

const checkerOptions = createProviderAuthCheckerMock.mock.calls.at(0)?.[0];

3636

expect(checkerOptions?.cfg).toBe(cfg);

3737

expect(checkerOptions?.allowPluginSyntheticAuth).toBe(false);

3838

expect(checkerOptions?.discoverExternalCliAuth).toBe(false);

@@ -70,7 +70,7 @@ describe("resolveVisibleModelCatalog", () => {

7070

});

7171
7272

expect(createProviderAuthCheckerMock).toHaveBeenCalledTimes(1);

73-

expect(createProviderAuthCheckerMock.mock.calls[0]?.[0]).toMatchObject({

73+

expect(createProviderAuthCheckerMock.mock.calls.at(0)?.[0]).toMatchObject({

7474

allowPluginSyntheticAuth: true,

7575

discoverExternalCliAuth: true,

7676

});

@@ -105,7 +105,7 @@ describe("resolveVisibleModelCatalog", () => {

105105

});

106106
107107

expect(createProviderAuthCheckerMock).toHaveBeenCalledTimes(1);

108-

expect(createProviderAuthCheckerMock.mock.calls[0]?.[0]).toMatchObject({

108+

expect(createProviderAuthCheckerMock.mock.calls.at(0)?.[0]).toMatchObject({

109109

allowPluginSyntheticAuth: true,

110110

discoverExternalCliAuth: true,

111111

});