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

推荐订阅源

大猫的无限游戏
大猫的无限游戏
云风的 BLOG
云风的 BLOG
小众软件
小众软件
V
V2EX
博客园 - Franky
博客园 - 司徒正美
Apple Machine Learning Research
Apple Machine Learning Research
量子位
博客园 - 【当耐特】
雷峰网
雷峰网
WordPress大学
WordPress大学
Jina AI
Jina AI
Google DeepMind News
Google DeepMind News
N
Netflix TechBlog - Medium
爱范儿
爱范儿
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
阮一峰的网络日志
阮一峰的网络日志
IT之家
IT之家
Blog — PlanetScale
Blog — PlanetScale
Hugging Face - Blog
Hugging Face - Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
V
Visual Studio Blog
Microsoft Security Blog
Microsoft Security 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 command call assertions · openclaw/openclaw@0...
steipete · 2026-05-12 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -360,7 +360,7 @@ describe("agentCommand ACP runtime routing", () => {

360360

message: " ping\n",

361361

chunks: [" ACP_OK\n"],

362362

});

363-

const runTurnInput = runTurn.mock.calls[0]?.[0] as

363+

const runTurnInput = runTurn.mock.calls.at(0)?.[0] as

364364

| { mode?: string; sessionKey?: string; text?: string }

365365

| undefined;

366366

expect(runTurnInput?.sessionKey).toBe("agent:codex:acp:test");

@@ -489,7 +489,7 @@ describe("agentCommand ACP runtime routing", () => {

489489
490490

await agentCommand({ message: "ping", sessionKey: "agent:kimi:acp:test" }, runtime);

491491
492-

const runTurnInput = runTurn.mock.calls[0]?.[0] as

492+

const runTurnInput = runTurn.mock.calls.at(0)?.[0] as

493493

| { sessionKey?: string; text?: string }

494494

| undefined;

495495

expect(runTurnInput?.sessionKey).toBe("agent:kimi:acp:test");

Original file line numberDiff line numberDiff line change

@@ -208,7 +208,7 @@ function expectSetupSnapshotDoesNotScopeToPlugin(params: {

208208

});

209209
210210

expect(loadOpenClawPlugins).toHaveBeenCalledTimes(1);

211-

const firstLoadCall = vi.mocked(loadOpenClawPlugins).mock.calls[0]?.[0] as

211+

const firstLoadCall = vi.mocked(loadOpenClawPlugins).mock.calls.at(0)?.[0] as

212212

| { onlyPluginIds?: string[] }

213213

| undefined;

214214

expect(firstLoadCall?.onlyPluginIds).toStrictEqual([]);

@@ -300,7 +300,7 @@ async function runInitialValueForChannel(channel: "dev" | "beta") {

300300

runtime,

301301

});

302302
303-

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

303+

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

304304

if (!call) {

305305

throw new Error("Expected select call");

306306

}

Original file line numberDiff line numberDiff line change

@@ -171,7 +171,7 @@ describe("channelsRemoveCommand", () => {

171171
172172

expect(ensureChannelSetupPluginInstalled).not.toHaveBeenCalled();

173173

expect(registryRefreshMocks.refreshPluginRegistryAfterConfigMutation).not.toHaveBeenCalled();

174-

const writtenConfig = configMocks.writeConfigFile.mock.calls[0]?.[0] as

174+

const writtenConfig = configMocks.writeConfigFile.mock.calls.at(0)?.[0] as

175175

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

176176

| undefined;

177177

expect(writtenConfig?.channels?.["external-chat"]).toBeUndefined();

@@ -237,7 +237,7 @@ describe("channelsRemoveCommand", () => {

237237

clientName: "gateway-client",

238238

deviceIdentity: null,

239239

});

240-

const writtenConfig = configMocks.writeConfigFile.mock.calls[0]?.[0] as

240+

const writtenConfig = configMocks.writeConfigFile.mock.calls.at(0)?.[0] as

241241

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

242242

| undefined;

243243

expect(writtenConfig?.channels?.["external-chat"]).toBeUndefined();

Original file line numberDiff line numberDiff line change

@@ -27,7 +27,7 @@ describe("noteStartupOptimizationHints", () => {

2727

);

2828
2929

expect(noteFn).toHaveBeenCalledTimes(1);

30-

const [message, title] = noteFn.mock.calls[0] ?? [];

30+

const [message, title] = noteFn.mock.calls.at(0) ?? [];

3131

expect(title).toBe("Startup optimization");

3232

expect(message).toBe(

3333

[

@@ -54,7 +54,7 @@ describe("noteStartupOptimizationHints", () => {

5454

);

5555
5656

expect(noteFn).toHaveBeenCalledTimes(1);

57-

const [message] = noteFn.mock.calls[0] ?? [];

57+

const [message] = noteFn.mock.calls.at(0) ?? [];

5858

expect(message).toBe(

5959

[

6060

"- NODE_DISABLE_COMPILE_CACHE is set; startup compile cache is disabled.",

Original file line numberDiff line numberDiff line change

@@ -86,7 +86,10 @@ describe("maybeRepairSandboxImages", () => {

8686
8787

// The warning should clearly indicate sandbox is enabled but won't work

8888

expect(note).toHaveBeenCalled();

89-

const noteCall = note.mock.calls[0];

89+

const noteCall = note.mock.calls.at(0);

90+

if (noteCall === undefined) {

91+

throw new Error("expected sandbox warning note");

92+

}

9093

const message = noteCall[0] as string;

9194
9295

// The message should warn that sandbox mode won't function, not just "skipping checks"

@@ -99,7 +102,10 @@ describe("maybeRepairSandboxImages", () => {

99102

await runSandboxRepair({ mode: "all", dockerAvailable: false });

100103
101104

expect(note).toHaveBeenCalled();

102-

const noteCall = note.mock.calls[0];

105+

const noteCall = note.mock.calls.at(0);

106+

if (noteCall === undefined) {

107+

throw new Error("expected sandbox warning note");

108+

}

103109

const message = noteCall[0] as string;

104110
105111

// Should warn about the impact on sandbox functionality

Original file line numberDiff line numberDiff line change

@@ -116,14 +116,14 @@ describe("root memory repair", () => {

116116

expect(canonical).toContain("# Legacy");

117117

await expectPathMissing(path.join(tmpDir, "memory.md"));

118118

expect(note).toHaveBeenCalledTimes(1);

119-

const repairMessage = String(note.mock.calls[0]?.[0] ?? "");

119+

const repairMessage = String(note.mock.calls.at(0)?.[0] ?? "");

120120

const repairLines = repairMessage.split("\n");

121121

expect(repairLines[0]).toBe("Workspace memory root merged:");

122122

expect(repairLines).toContain(`- canonical: ${path.join(tmpDir, "MEMORY.md")}`);

123123

expect(repairLines).toContain(

124124

`- merged legacy content from: ${path.join(tmpDir, "memory.md")}`,

125125

);

126126

expect(repairLines).toContain(`- removed legacy file: ${path.join(tmpDir, "memory.md")}`);

127-

expect(note.mock.calls[0]?.[1]).toBe("Doctor changes");

127+

expect(note.mock.calls.at(0)?.[1]).toBe("Doctor changes");

128128

});

129129

});

Original file line numberDiff line numberDiff line change

@@ -128,7 +128,7 @@ describe("bundled channel legacy config migrations", () => {

128128

});

129129
130130

expect(applyPluginDoctorCompatibilityMigrations).toHaveBeenCalledOnce();

131-

const migrationCall = applyPluginDoctorCompatibilityMigrations.mock.calls[0];

131+

const migrationCall = applyPluginDoctorCompatibilityMigrations.mock.calls.at(0);

132132

expect(typeof migrationCall?.[0]).toBe("object");

133133

expect(migrationCall?.[1]?.config).toStrictEqual({

134134

channels: {

@@ -198,7 +198,7 @@ describe("bundled channel legacy config migrations", () => {

198198

const result = applyChannelDoctorCompatibilityMigrations(config);

199199
200200

expect(applyPluginDoctorCompatibilityMigrations).toHaveBeenCalledOnce();

201-

const migrationCall = applyPluginDoctorCompatibilityMigrations.mock.calls[0];

201+

const migrationCall = applyPluginDoctorCompatibilityMigrations.mock.calls.at(0);

202202

expect(typeof migrationCall?.[0]).toBe("object");

203203

expect(migrationCall?.[1]).toStrictEqual({

204204

config,

Original file line numberDiff line numberDiff line change

@@ -17,7 +17,7 @@ type RunMessageActionParams = {

1717
1818

function readOnlyMessageActionCall(): RunMessageActionParams {

1919

expect(runMessageActionMock).toHaveBeenCalledOnce();

20-

const call = runMessageActionMock.mock.calls[0]?.[0];

20+

const call = runMessageActionMock.mock.calls.at(0)?.[0];

2121

if (!call) {

2222

throw new Error("Expected message action call");

2323

}

@@ -208,7 +208,7 @@ describe("messageCommand", () => {

208208

expect(actionCall.gateway?.clientName).toBe("cli");

209209

expect(actionCall.gateway?.mode).toBe("cli");

210210

expect(actionCall.cfg).not.toBe(rawConfig);

211-

const configResolutionCall = resolveCommandConfigWithSecrets.mock.calls[0]?.[0] as {

211+

const configResolutionCall = resolveCommandConfigWithSecrets.mock.calls.at(0)?.[0] as {

212212

commandName?: string;

213213

config?: unknown;

214214

targetIds?: Set<string>;

Original file line numberDiff line numberDiff line change

@@ -247,7 +247,7 @@ describe("sessionsCleanupCommand", () => {

247247

appliedCount: 1,

248248

});

249249

expect(mocks.runSessionsCleanup).toHaveBeenCalledOnce();

250-

const cleanupCall = mocks.runSessionsCleanup.mock.calls[0]?.[0];

250+

const cleanupCall = mocks.runSessionsCleanup.mock.calls.at(0)?.[0];

251251

expect(cleanupCall?.cfg).toEqual({ session: { store: "/cfg/sessions.json" } });

252252

expect(cleanupCall?.opts.enforce).toBe(true);

253253

expect(cleanupCall?.opts.activeKey).toBe("agent:main:main");

@@ -284,7 +284,7 @@ describe("sessionsCleanupCommand", () => {

284284

);

285285
286286

expect(mocks.callGateway).toHaveBeenCalledOnce();

287-

const gatewayCall = mocks.callGateway.mock.calls[0]?.[0];

287+

const gatewayCall = mocks.callGateway.mock.calls.at(0)?.[0];

288288

expect(gatewayCall?.method).toBe("sessions.cleanup");

289289

expect(gatewayCall?.params.enforce).toBe(true);

290290

expect(gatewayCall?.requiredMethods).toEqual(["sessions.cleanup"]);

Original file line numberDiff line numberDiff line change

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

105105

await scanStatusJsonFast({}, {} as never);

106106
107107

expect(mocks.getStatusSummary).toHaveBeenCalledOnce();

108-

const summaryOptions = mocks.getStatusSummary.mock.calls[0]?.[0] as

108+

const summaryOptions = mocks.getStatusSummary.mock.calls.at(0)?.[0] as

109109

| { includeChannelSummary?: unknown }

110110

| undefined;

111111

expect(summaryOptions?.includeChannelSummary).toBe(false);

@@ -135,7 +135,7 @@ describe("scanStatusJsonFast", () => {

135135

});

136136

expect(mocks.resolveMemorySearchConfig).toHaveBeenCalled();

137137

expect(mocks.getMemorySearchManager).toHaveBeenCalledOnce();

138-

expect(mocks.getMemorySearchManager.mock.calls[0]?.[0]).toStrictEqual({

138+

expect(mocks.getMemorySearchManager.mock.calls.at(0)?.[0]).toStrictEqual({

139139

cfg: createStatusMemorySearchConfig(),

140140

agentId: "main",

141141

purpose: "status",