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

推荐订阅源

人人都是产品经理
人人都是产品经理
博客园_首页
博客园 - 三生石上(FineUI控件)
V
Visual Studio Blog
Hugging Face - Blog
Hugging Face - Blog
美团技术团队
小众软件
小众软件
T
Tailwind CSS Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
月光博客
月光博客
有赞技术团队
有赞技术团队
WordPress大学
WordPress大学
博客园 - 【当耐特】
Apple Machine Learning Research
Apple Machine Learning Research
罗磊的独立博客
V
V2EX
酷 壳 – CoolShell
酷 壳 – CoolShell
IT之家
IT之家
量子位
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Recent Announcements
Recent Announcements
M
MIT News - Artificial intelligence
阮一峰的网络日志
阮一峰的网络日志
The GitHub Blog
The GitHub 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 extension messaging mock calls · openclaw/ope...
steipete · 2026-05-12 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -95,7 +95,7 @@ function registerProviderWithPluginConfig(pluginConfig: Record<string, unknown>)

9595

);

9696
9797

expect(registerProviderMock).toHaveBeenCalledTimes(1);

98-

return registerProviderMock.mock.calls[0]?.[0];

98+

return registerProviderMock.mock.calls.at(0)?.[0];

9999

}

100100
101101

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

@@ -106,7 +106,7 @@ function requireRecord(value: unknown, label: string): Record<string, unknown> {

106106

}

107107
108108

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

109-

return requireRecord(createConfiguredOllamaStreamFnMock.mock.calls[0]?.[0], "stream params");

109+

return requireRecord(createConfiguredOllamaStreamFnMock.mock.calls.at(0)?.[0], "stream params");

110110

}

111111
112112

function captureWrappedOllamaPayload(

Original file line numberDiff line numberDiff line change

@@ -1163,7 +1163,7 @@ describe("openai image generation provider", () => {

11631163

],

11641164

});

11651165
1166-

const body = postJsonRequestMock.mock.calls[0]?.[0].body as {

1166+

const body = postJsonRequestMock.mock.calls.at(0)?.[0].body as {

11671167

input: Array<{ content: Array<Record<string, string>> }>;

11681168

};

11691169

expect(body.input[0]?.content).toEqual([

@@ -1192,7 +1192,7 @@ describe("openai image generation provider", () => {

11921192

});

11931193
11941194

expect(postJsonRequestMock).toHaveBeenCalledTimes(2);

1195-

const firstBody = postJsonRequestMock.mock.calls[0]?.[0].body as {

1195+

const firstBody = postJsonRequestMock.mock.calls.at(0)?.[0].body as {

11961196

tools: Array<Record<string, unknown>>;

11971197

};

11981198

expect(firstBody.tools[0]).toEqual({

Original file line numberDiff line numberDiff line change

@@ -90,7 +90,7 @@ describe("runQaManualLane", () => {

9090

});

9191
9292

expect(startQaProviderServer).toHaveBeenCalledWith("mock-openai");

93-

const [gatewayOptions] = startQaGatewayChild.mock.calls[0] ?? [];

93+

const [gatewayOptions] = startQaGatewayChild.mock.calls.at(0) ?? [];

9494

expect(gatewayOptions?.repoRoot).toBe("/tmp/openclaw-repo");

9595

expect(gatewayOptions?.providerMode).toBe("mock-openai");

9696

expect(gatewayOptions?.providerBaseUrl).toBe("http://127.0.0.1:44080/v1");

@@ -120,7 +120,7 @@ describe("runQaManualLane", () => {

120120

repoRoot: "/tmp/openclaw-repo",

121121

embeddedGateway: "disabled",

122122

});

123-

const [gatewayOptions] = startQaGatewayChild.mock.calls[0] ?? [];

123+

const [gatewayOptions] = startQaGatewayChild.mock.calls.at(0) ?? [];

124124

expect(gatewayOptions?.providerMode).toBe("live-frontier");

125125

expect(gatewayOptions?.providerBaseUrl).toBeUndefined();

126126

expect(result.reply).toBe("Protocol note: mock reply.");

Original file line numberDiff line numberDiff line change

@@ -51,7 +51,7 @@ describe("bridge/tools/remind", () => {

5151

time: "5m",

5252

});

5353
54-

const addCall = callGatewayToolMock.mock.calls[0];

54+

const addCall = callGatewayToolMock.mock.calls.at(0);

5555

const addPayload = addCall?.[2] as CronAddToolPayload | undefined;

5656

expect(addCall?.[0]).toBe("cron.add");

5757

expect(addCall?.[1]).toEqual({ timeoutMs: 60_000 });

@@ -103,7 +103,7 @@ describe("bridge/tools/remind", () => {

103103

time: "5m",

104104

});

105105
106-

const cronParams = callCron.mock.calls[0]?.[0] as RemindCronAction | undefined;

106+

const cronParams = callCron.mock.calls.at(0)?.[0] as RemindCronAction | undefined;

107107

expect(cronParams?.action).toBe("add");

108108

if (cronParams?.action !== "add") {

109109

throw new Error("Expected add reminder cron params");

Original file line numberDiff line numberDiff line change

@@ -50,7 +50,7 @@ describe("getImageSizeFromUrl", () => {

5050

await getImageSizeFromUrl("https://cdn.example.com/photo.png");

5151
5252

expect(adapterMocks.fetchMedia).toHaveBeenCalledOnce();

53-

const opts = adapterMocks.fetchMedia.mock.calls[0][0];

53+

const opts = adapterMocks.fetchMedia.mock.calls.at(0)?.[0];

5454
5555

expect(opts.url).toBe("https://cdn.example.com/photo.png");

5656

expect(opts.maxBytes).toBe(65_536);

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

7070
7171

await getImageSizeFromUrl("https://cdn.example.com/img.png", 3000);

7272
73-

const opts = adapterMocks.fetchMedia.mock.calls[0][0];

73+

const opts = adapterMocks.fetchMedia.mock.calls.at(0)?.[0];

7474

expect(opts.requestInit.signal).toBeInstanceOf(AbortSignal);

7575

});

7676

});

Original file line numberDiff line numberDiff line change

@@ -73,7 +73,7 @@ describe("qwen video generation provider", () => {

7373

});

7474
7575

expect(postJsonRequestMock).toHaveBeenCalledTimes(1);

76-

expectPostJsonRequest(postJsonRequestMock.mock.calls[0]?.[0], {

76+

expectPostJsonRequest(postJsonRequestMock.mock.calls.at(0)?.[0], {

7777

url: "https://dashscope-intl.aliyuncs.com/api/v1/services/aigc/video-generation/video-synthesis",

7878

body: {

7979

model: "wan2.6-r2v-flash",

@@ -135,7 +135,7 @@ describe("qwen video generation provider", () => {

135135

});

136136
137137

expect(postJsonRequestMock).toHaveBeenCalledTimes(1);

138-

expectPostJsonRequest(postJsonRequestMock.mock.calls[0]?.[0], {

138+

expectPostJsonRequest(postJsonRequestMock.mock.calls.at(0)?.[0], {

139139

url: "https://coding-intl.dashscope.aliyuncs.com/api/v1/services/aigc/video-generation/video-synthesis",

140140

body: {

141141

model: "wan2.6-t2v",

Original file line numberDiff line numberDiff line change

@@ -140,7 +140,7 @@ describe("monitorSignalProvider tool results", () => {

140140

await vi.waitFor(() => {

141141

expect(sendMock).toHaveBeenCalledTimes(1);

142142

});

143-

expect(sendMock.mock.calls[0][1]).toBe("PFX final reply");

143+

expect(sendMock.mock.calls.at(0)?.[1]).toBe("PFX final reply");

144144

});

145145
146146

it("replies with pairing code when dmPolicy is pairing and no allowFrom is set", async () => {

@@ -165,7 +165,7 @@ describe("monitorSignalProvider tool results", () => {

165165

expect(replyMock).not.toHaveBeenCalled();

166166

expect(upsertPairingRequestMock).toHaveBeenCalled();

167167

expect(sendMock).toHaveBeenCalledTimes(1);

168-

expectPairingReplyText(String(sendMock.mock.calls[0]?.[1] ?? ""), {

168+

expectPairingReplyText(String(sendMock.mock.calls.at(0)?.[1] ?? ""), {

169169

channel: "signal",

170170

idLine: "Your Signal number: +15550001111",

171171

code: "PAIRCODE",

Original file line numberDiff line numberDiff line change

@@ -221,7 +221,7 @@ describe("registerSlackMessageEvents", () => {

221221

});

222222
223223

expect(handleSlackMessage).toHaveBeenCalledTimes(1);

224-

const call = handleSlackMessage.mock.calls[0] as unknown as

224+

const call = handleSlackMessage.mock.calls.at(0) as unknown as

225225

| [{ subtype?: string; channel?: string; user?: string }, { source?: string }]

226226

| undefined;

227227

expect(call?.[0]?.subtype).toBe("thread_broadcast");

@@ -239,7 +239,7 @@ describe("registerSlackMessageEvents", () => {

239239

});

240240
241241

expect(handleSlackMessage).toHaveBeenCalledTimes(1);

242-

const call = handleSlackMessage.mock.calls[0] as unknown as

242+

const call = handleSlackMessage.mock.calls.at(0) as unknown as

243243

| [

244244

{

245245

channel?: string;

Original file line numberDiff line numberDiff line change

@@ -45,15 +45,15 @@ describe("tavily client X-Client-Source header", () => {

4545

await runTavilySearch({ query: "test query" });

4646
4747

expect(postTrustedWebToolsJson).toHaveBeenCalledOnce();

48-

const params = postTrustedWebToolsJson.mock.calls[0][0];

48+

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

4949

expect(params.extraHeaders).toEqual({ "X-Client-Source": "openclaw" });

5050

});

5151
5252

it("runTavilyExtract sends X-Client-Source: openclaw", async () => {

5353

await runTavilyExtract({ urls: ["https://example.com"] });

5454
5555

expect(postTrustedWebToolsJson).toHaveBeenCalledOnce();

56-

const params = postTrustedWebToolsJson.mock.calls[0][0];

56+

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

5757

expect(params.extraHeaders).toEqual({ "X-Client-Source": "openclaw" });

5858

});

5959

});

Original file line numberDiff line numberDiff line change

@@ -124,7 +124,7 @@ describe("telegram stickers", () => {

124124

expect(cachedSticker?.setName).toBe("NewSet");

125125

expect(media?.stickerMetadata?.fileId).toBe("new_file_id");

126126

expect(media?.stickerMetadata?.cachedDescription).toBe("Cached description");

127-

const [fetchUrl, fetchOptions] = proxyFetch.mock.calls[0] ?? [];

127+

const [fetchUrl, fetchOptions] = proxyFetch.mock.calls.at(0) ?? [];

128128

expect(fetchUrl).toBe("https://api.telegram.org/file/bottok/stickers/sticker.webp");

129129

expect(fetchOptions?.redirect).toBe("manual");

130130

},

@@ -240,7 +240,7 @@ describe("telegram text fragments", () => {

240240

await flushScheduledTimerForDelay(setTimeoutSpy, TELEGRAM_TEST_TIMINGS.textFragmentGapMs);

241241
242242

expect(replySpy).toHaveBeenCalledTimes(1);

243-

const payload = replySpy.mock.calls[0][0] as { RawBody?: string };

243+

const payload = replySpy.mock.calls.at(0)?.[0] as { RawBody?: string };

244244

expect(payload.RawBody).toContain(part1.slice(0, 32));

245245

expect(payload.RawBody).toContain(part2.slice(0, 32));

246246

} finally {