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

推荐订阅源

J
Java Code Geeks
F
Fortinet All Blogs
云风的 BLOG
云风的 BLOG
MyScale Blog
MyScale Blog
D
DataBreaches.Net
Stack Overflow Blog
Stack Overflow Blog
A
About on SuperTechFans
Google DeepMind News
Google DeepMind News
Microsoft Security Blog
Microsoft Security Blog
腾讯CDC
The GitHub Blog
The GitHub Blog
Jina AI
Jina AI
B
Blog RSS Feed
I
InfoQ
N
Netflix TechBlog - Medium
T
The Blog of Author Tim Ferriss
Microsoft Azure Blog
Microsoft Azure Blog
Recent Announcements
Recent Announcements
GbyAI
GbyAI
H
Help Net Security
L
LangChain Blog
M
MIT News - Artificial intelligence
Y
Y Combinator Blog
aimingoo的专栏
aimingoo的专栏

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

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

9393

expect(result.id).toBe("dm-channel-456");

9494

expect(mockFetch).toHaveBeenCalledTimes(2);

9595

expect(onRetry).toHaveBeenCalledTimes(1);

96-

const retryCall = onRetry.mock.calls[0];

96+

const retryCall = onRetry.mock.calls.at(0);

9797

expect(retryCall?.[0]).toBe(1);

9898

expect(retryCall?.[1]).toBeGreaterThanOrEqual(10);

9999

expect(retryCall?.[1]).toBeLessThanOrEqual(20);

Original file line numberDiff line numberDiff line change

@@ -236,7 +236,7 @@ describe("mattermost websocket monitor", () => {

236236

post_id: "post-1",

237237

emoji_name: "thumbsup",

238238

});

239-

const payload = onReaction.mock.calls[0]?.[0];

239+

const payload = onReaction.mock.calls.at(0)?.[0];

240240

expect(payload).toEqual({

241241

event: "reaction_added",

242242

data: { reaction },

Original file line numberDiff line numberDiff line change

@@ -246,7 +246,7 @@ describe("mattermost setup", () => {

246246

}

247247
248248

expect(registerHttpRoute).toHaveBeenCalledTimes(1);

249-

const [route] = registerHttpRoute.mock.calls[0] ?? [];

249+

const [route] = registerHttpRoute.mock.calls.at(0) ?? [];

250250

expect(route?.path).toBe("/api/channels/mattermost/command");

251251

expect(route?.auth).toBe("plugin");

252252

expect(typeof route?.handler).toBe("function");

Original file line numberDiff line numberDiff line change

@@ -2249,7 +2249,7 @@ describe("short-term dreaming trigger", () => {

22492249

const dreamsText = await fs.readFile(path.join(workspaceDir, "DREAMS.md"), "utf-8");

22502250

expect(dreamsText).toContain("A diary entry.");

22512251

});

2252-

expect(subagent.run.mock.calls[0]?.[0]?.model).toBe("anthropic/claude-sonnet-4-6");

2252+

expect(subagent.run.mock.calls.at(0)?.[0]?.model).toBe("anthropic/claude-sonnet-4-6");

22532253

});

22542254
22552255

it("skips dreaming promotion cleanly when limit is zero", async () => {

Original file line numberDiff line numberDiff line change

@@ -411,7 +411,7 @@ describe("searchKeyword FTS MATCH fallback", () => {

411411

});

412412
413413

expect(warnSpy).toHaveBeenCalledTimes(1);

414-

const [warning] = warnSpy.mock.calls[0] ?? [];

414+

const [warning] = warnSpy.mock.calls.at(0) ?? [];

415415

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

416416

expect(

417417

(warning as string | undefined)?.startsWith(

Original file line numberDiff line numberDiff line change

@@ -448,7 +448,7 @@ describe("memory plugin e2e", () => {

448448

expect(providerOptions.provider).toBe("openai");

449449

expect(providerOptions.fallback).toBe("none");

450450

expect(providerOptions.model).toBe("text-embedding-3-small");

451-

expect(createProvider.mock.calls[0][0]).not.toHaveProperty("remote");

451+

expect(createProvider.mock.calls.at(0)?.[0]).not.toHaveProperty("remote");

452452

expect(embedQuery).toHaveBeenCalledWith("project memory");

453453

} finally {

454454

vi.doUnmock("openclaw/plugin-sdk/memory-core-host-engine-embeddings");

Original file line numberDiff line numberDiff line change

@@ -49,7 +49,7 @@ describe("memory-wiki plugin", () => {

4949

"wiki_get",

5050

]);

5151

expect(registerCli).toHaveBeenCalledTimes(1);

52-

expect(registerCli.mock.calls[0]?.[1]).toStrictEqual({

52+

expect(registerCli.mock.calls.at(0)?.[1]).toStrictEqual({

5353

descriptors: [

5454

{

5555

name: "wiki",

Original file line numberDiff line numberDiff line change

@@ -270,7 +270,7 @@ describe("nextcloud-talk send cfg threading", () => {

270270

accountId: "work",

271271

});

272272

expect(result?.receipt.platformMessageIds).toEqual(["22346"]);

273-

const mediaSendCall = fetchMock.mock.calls[1];

273+

const mediaSendCall = fetchMock.mock.calls.at(1);

274274

expect(mediaSendCall?.[0]).toBe(

275275

"https://nextcloud.example.com/ocs/v2.php/apps/spreed/api/v1/bot/abc123/message",

276276

);

Original file line numberDiff line numberDiff line change

@@ -1205,7 +1205,7 @@ function createControlledNdjsonFetch(): {

12051205

}

12061206
12071207

function getGuardedFetchCall(fetchMock: typeof fetchWithSsrFGuardMock): GuardedFetchCall {

1208-

return (fetchMock.mock.calls[0]?.[0] as GuardedFetchCall | undefined) ?? { url: "" };

1208+

return (fetchMock.mock.calls.at(0)?.[0] as GuardedFetchCall | undefined) ?? { url: "" };

12091209

}

12101210
12111211

async function createOllamaTestStream(params: {

Original file line numberDiff line numberDiff line change

@@ -119,7 +119,7 @@ describe("wsl2 crash-loop check", () => {

119119

await checkWsl2CrashLoopRisk(logger);

120120
121121

expect(logger.warn).toHaveBeenCalledTimes(1);

122-

const message = String(logger.warn.mock.calls[0]?.[0]);

122+

const message = String(logger.warn.mock.calls.at(0)?.[0]);

123123

expect(message).toContain("WSL2 crash-loop risk");

124124

expect(message).toContain("sudo systemctl disable ollama");

125125

expect(message).toContain("autoMemoryReclaim=disabled");