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

推荐订阅源

freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
G
Google Developers Blog
Hugging Face - Blog
Hugging Face - Blog
博客园 - 【当耐特】
S
SegmentFault 最新的问题
宝玉的分享
宝玉的分享
博客园 - Franky
博客园_首页
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
WordPress大学
WordPress大学
有赞技术团队
有赞技术团队
月光博客
月光博客
博客园 - 聂微东
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
小众软件
小众软件
Microsoft Security Blog
Microsoft Security Blog
Last Week in AI
Last Week in AI
Vercel News
Vercel News
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
爱范儿
爱范儿
J
Java Code Geeks
博客园 - 叶小钗
Engineering at Meta
Engineering at Meta
阮一峰的网络日志
阮一峰的网络日志

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 tool call assertions · openclaw/opencla...
steipete · 2026-05-12 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

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

105105

},

106106

});

107107
108-

const call = callGatewayMock.mock.calls[0]?.[0] as {

108+

const call = callGatewayMock.mock.calls.at(0)?.[0] as {

109109

params?: { delivery?: TestDelivery };

110110

};

111111

return call?.params?.delivery;

@@ -534,7 +534,7 @@ describe("cron tool", () => {

534534

},

535535

});

536536
537-

const call = callGatewayMock.mock.calls[0]?.[0] as {

537+

const call = callGatewayMock.mock.calls.at(0)?.[0] as {

538538

params?: { agentId?: unknown };

539539

};

540540

expect(call?.params?.agentId).toBeNull();

@@ -721,7 +721,7 @@ describe("cron tool", () => {

721721

},

722722

});

723723
724-

const call = callGatewayMock.mock.calls[0]?.[0] as {

724+

const call = callGatewayMock.mock.calls.at(0)?.[0] as {

725725

method?: string;

726726

params?: { agentId?: string | null };

727727

};

@@ -1066,7 +1066,7 @@ describe("cron tool", () => {

10661066

name: "flat-name-should-be-ignored",

10671067

});

10681068
1069-

const call = callGatewayMock.mock.calls[0]?.[0] as {

1069+

const call = callGatewayMock.mock.calls.at(0)?.[0] as {

10701070

params?: { name?: string; payload?: { text?: string } };

10711071

};

10721072

expect(call?.params?.name).toBe("nested-job");

Original file line numberDiff line numberDiff line change

@@ -668,10 +668,8 @@ describe("sessions_spawn tool", () => {

668668

expect(spawnArgs.task).toBe("resume prior work");

669669

const spawnContext = mockCallArg(hoisted.spawnSubagentDirectMock, 0, 1, "spawnSubagentDirect");

670670

expect(spawnContext.agentSessionKey).toBe("agent:main:main");

671-

expect(hoisted.spawnSubagentDirectMock.mock.calls[0]?.[0]).not.toHaveProperty(

672-

"resumeSessionId",

673-

);

674-

expect(hoisted.spawnSubagentDirectMock.mock.calls[0]?.[0]).not.toHaveProperty("streamTo");

671+

expect(spawnArgs).not.toHaveProperty("resumeSessionId");

672+

expect(spawnArgs).not.toHaveProperty("streamTo");

675673

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

676674

});

677675

@@ -717,10 +715,8 @@ describe("sessions_spawn tool", () => {

717715

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

718716

const spawnArgs = mockCallArg(hoisted.spawnSubagentDirectMock, 0, 0, "spawnSubagentDirect");

719717

expect(spawnArgs.task).toBe("analyze file");

720-

expect(hoisted.spawnSubagentDirectMock.mock.calls[0]?.[0]).not.toHaveProperty(

721-

"resumeSessionId",

722-

);

723-

expect(hoisted.spawnSubagentDirectMock.mock.calls[0]?.[0]).not.toHaveProperty("streamTo");

718+

expect(spawnArgs).not.toHaveProperty("resumeSessionId");

719+

expect(spawnArgs).not.toHaveProperty("streamTo");

724720

});

725721
726722

it('treats model="default" as no explicit model override', async () => {

Original file line numberDiff line numberDiff line change

@@ -156,7 +156,7 @@ function resultDetails(result: { details?: unknown }): Record<string, unknown> {

156156

}

157157
158158

function firstMockCallArg(mock: { mock: { calls: unknown[][] } }): unknown {

159-

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

159+

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

160160

if (!firstCall) {

161161

throw new Error("Expected first mock call");

162162

}

@@ -399,7 +399,7 @@ describe("createVideoGenerateTool", () => {

399399

});

400400
401401

expect((firstMockCallArg(generateSpy) as { timeoutMs?: number }).timeoutMs).toBe(180_000);

402-

expect((generateSpy.mock.calls[1]?.[0] as { timeoutMs?: number }).timeoutMs).toBe(12_345);

402+

expect((generateSpy.mock.calls.at(1)?.[0] as { timeoutMs?: number }).timeoutMs).toBe(12_345);

403403

expect(resultDetails(defaultResult).timeoutMs).toBe(180_000);

404404

expect(resultDetails(overrideResult).timeoutMs).toBe(12_345);

405405

});

@@ -1059,7 +1059,7 @@ describe("createVideoGenerateTool", () => {

10591059

});

10601060
10611061

expect(generateSpy).toHaveBeenCalledTimes(1);

1062-

const call = generateSpy.mock.calls[0]?.[0] as {

1062+

const call = generateSpy.mock.calls.at(0)?.[0] as {

10631063

inputImages?: Array<{ role?: string }>;

10641064

};

10651065

expect(call.inputImages).toHaveLength(2);

@@ -1096,7 +1096,7 @@ describe("createVideoGenerateTool", () => {

10961096

image: "/tmp/reference.png",

10971097

});

10981098
1099-

const loadCall = vi.mocked(webMedia.loadWebMedia).mock.calls[0];

1099+

const loadCall = vi.mocked(webMedia.loadWebMedia).mock.calls.at(0);

11001100

expect(loadCall?.[0]).toBe("/tmp/reference.png");

11011101

const loadOptions = loadCall?.[1] as { ssrfPolicy?: unknown } | undefined;

11021102

expect(loadOptions?.ssrfPolicy).toEqual({ allowRfc2544BenchmarkRange: true });