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

推荐订阅源

博客园 - 三生石上(FineUI控件)
S
SegmentFault 最新的问题
阮一峰的网络日志
阮一峰的网络日志
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
雷峰网
雷峰网
Apple Machine Learning Research
Apple Machine Learning Research
WordPress大学
WordPress大学
博客园 - 司徒正美
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
宝玉的分享
宝玉的分享
爱范儿
爱范儿
月光博客
月光博客
The GitHub Blog
The GitHub Blog
M
MIT News - Artificial intelligence
H
Hackread – Cybersecurity News, Data Breaches, AI and More
B
Blog
T
Tailwind CSS Blog
美团技术团队
D
Docker
V
Visual Studio Blog
Martin Fowler
Martin Fowler
博客园 - 聂微东
The Cloudflare 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 whatsapp mock calls · openclaw/openclaw@b42227e
steipete · 2026-05-12 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -917,7 +917,7 @@ describe("whatsapp inbound dispatch", () => {

917917

replyKind: "final",

918918

conversationId: "+1000",

919919

});

920-

expect(warnMock.mock.calls[0]?.[1]).toBe("auto-reply was not accepted by WhatsApp provider");

920+

expect(warnMock.mock.calls.at(0)?.[1]).toBe("auto-reply was not accepted by WhatsApp provider");

921921

});

922922
923923

it("returns true for tool-only media turns after delivering media", async () => {

Original file line numberDiff line numberDiff line change

@@ -201,7 +201,7 @@ function makeRemoveAckAfterReplyParams() {

201201

}

202202
203203

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

204-

const call = transcribeFirstAudioMock.mock.calls[0]?.[0] as

204+

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

205205

| { ctx?: Record<string, unknown> }

206206

| undefined;

207207

if (!call?.ctx) {

Original file line numberDiff line numberDiff line change

@@ -194,7 +194,7 @@ describe("whatsapp setup wizard", () => {

194194

forceAllowFrom: true,

195195

});

196196
197-

const prompt = harness.text.mock.calls[0]?.[0] as

197+

const prompt = harness.text.mock.calls.at(0)?.[0] as

198198

| { validate?: (value: string) => string | undefined }

199199

| undefined;

200200

if (!prompt?.validate) {

Original file line numberDiff line numberDiff line change

@@ -93,7 +93,7 @@ describe("WhatsAppConnectionController", () => {

9393
9494

expect(createListener).not.toHaveBeenCalled();

9595

expect(sock.end).toHaveBeenCalledOnce();

96-

const closeError = sock.end.mock.calls[0]?.[0] as Error | undefined;

96+

const closeError = sock.end.mock.calls.at(0)?.[0] as Error | undefined;

9797

expect(closeError).toBeInstanceOf(Error);

9898

expect(closeError?.message).toBe("OpenClaw WhatsApp socket close");

9999

expect(sock.ws.close).not.toHaveBeenCalled();

Original file line numberDiff line numberDiff line change

@@ -153,7 +153,7 @@ async function waitForMessage(onMessage: ReturnType<typeof vi.fn>) {

153153

interval: 1,

154154

timeout: 250,

155155

});

156-

return onMessage.mock.calls[0][0];

156+

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

157157

}

158158
159159

function requireMediaPath(value: unknown): string {

Original file line numberDiff line numberDiff line change

@@ -267,7 +267,7 @@ describe("web monitor inbox", () => {

267267

expect(inbound.groupSubject).toBe("Recovered Group");

268268

expect(inbound.senderE164).toBe("+444");

269269

expect(inbound.chatType).toBe("group");

270-

expect(onMessage.mock.calls[0]?.[0].groupParticipants).toBeUndefined();

270+

expect(onMessage.mock.calls.at(0)?.[0].groupParticipants).toBeUndefined();

271271
272272

await second.listener.close();

273273

});

Original file line numberDiff line numberDiff line change

@@ -272,7 +272,7 @@ export function buildNotifyMessageUpsert(params: {

272272
273273

export function expectPairingPromptSent(sock: MockSock, jid: string, senderE164: string) {

274274

expect(sock.sendMessage).toHaveBeenCalledTimes(1);

275-

const sendCall = sock.sendMessage.mock.calls[0];

275+

const sendCall = sock.sendMessage.mock.calls.at(0);

276276

expect(sendCall?.[0]).toBe(jid);

277277

expectInboxPairingReplyText((sendCall?.[1] as { text?: string } | undefined)?.text ?? "", {

278278

channel: "whatsapp",

Original file line numberDiff line numberDiff line change

@@ -298,7 +298,7 @@ describe("web outbound", () => {

298298

});

299299
300300

expect(hoisted.runFfmpeg).toHaveBeenCalledTimes(1);

301-

const ffmpegArgs = hoisted.runFfmpeg.mock.calls[0]?.[0] as string[] | undefined;

301+

const ffmpegArgs = hoisted.runFfmpeg.mock.calls.at(0)?.[0] as string[] | undefined;

302302

expect(ffmpegArgs?.slice(0, 5)).toEqual(["-hide_banner", "-loglevel", "error", "-y", "-i"]);

303303

expect(ffmpegArgs?.[5]).toContain(`/input.${media.name}`);

304304

expect(ffmpegArgs?.slice(6, -1)).toEqual([