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

推荐订阅源

Recent Announcements
Recent Announcements
V
Visual Studio Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
云风的 BLOG
云风的 BLOG
Microsoft Security Blog
Microsoft Security Blog
博客园 - 司徒正美
Y
Y Combinator Blog
Stack Overflow Blog
Stack Overflow Blog
雷峰网
雷峰网
小众软件
小众软件
GbyAI
GbyAI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
aimingoo的专栏
aimingoo的专栏
MyScale Blog
MyScale Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
腾讯CDC
A
About on SuperTechFans
宝玉的分享
宝玉的分享
WordPress大学
WordPress大学
B
Blog RSS Feed
G
Google Developers Blog
量子位
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 三生石上(FineUI控件)

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

@@ -31,7 +31,7 @@ describe("warnLegacyOpenClawEnvVars", () => {

3131

});

3232
3333

expect(emitWarning).toHaveBeenCalledOnce();

34-

const [message, options] = emitWarning.mock.calls[0] as [

34+

const [message, options] = emitWarning.mock.calls.at(0) as [

3535

string,

3636

{ code: string; type: string },

3737

];

Original file line numberDiff line numberDiff line change

@@ -157,7 +157,7 @@ describe("handleGatewayPostJsonEndpoint", () => {

157157

},

158158

);

159159
160-

const [, requestAuth] = (resolveOperatorScopes.mock.calls[0] as unknown as

160+

const [, requestAuth] = (resolveOperatorScopes.mock.calls.at(0) as unknown as

161161

| [IncomingMessage, { authMethod?: string; trustDeclaredOperatorScopes: boolean }]

162162

| undefined) ?? [undefined, undefined];

163163

expect(requestAuth?.authMethod).toBe("token");

Original file line numberDiff line numberDiff line change

@@ -519,7 +519,7 @@ describe("mcp loopback server", () => {

519519

expect(response.status).toBe(200);

520520

expect(payload.result?.isError).toBe(false);

521521

expect(execute).toHaveBeenCalledTimes(1);

522-

const [callId, params, signal] = execute.mock.calls[0] ?? [];

522+

const [callId, params, signal] = execute.mock.calls.at(0) ?? [];

523523

expect(callId).toMatch(/^mcp-/);

524524

expect(params).toEqual({ body: "hello" });

525525

expect(signal).toBeInstanceOf(AbortSignal);

Original file line numberDiff line numberDiff line change

@@ -183,7 +183,7 @@ function expectResponseError(

183183

respond: ReturnType<typeof vi.fn>,

184184

expected: { code?: string; messageIncludes?: string },

185185

) {

186-

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

186+

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

187187

if (!call) {

188188

throw new Error("expected response call");

189189

}

Original file line numberDiff line numberDiff line change

@@ -113,7 +113,7 @@ function mockRotateOperatorTokenSuccess(): void {

113113

function expectRespondedErrorMessage(opts: GatewayRequestHandlerOptions, message: string): void {

114114

const respond = opts.respond as ReturnType<typeof vi.fn>;

115115

expect(respond).toHaveBeenCalledTimes(1);

116-

const call = respond.mock.calls[0] as unknown as [boolean, unknown, { message?: string }];

116+

const call = respond.mock.calls.at(0) as unknown as [boolean, unknown, { message?: string }];

117117

expect(call[0]).toBe(false);

118118

expect(call[1]).toBeUndefined();

119119

expect(call[2]?.message).toBe(message);

Original file line numberDiff line numberDiff line change

@@ -40,7 +40,11 @@ async function callEnvironmentMethod(

4040

respond,

4141

context: mockContext(),

4242

} as never);

43-

return respond.mock.calls[0];

43+

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

44+

if (call === undefined) {

45+

throw new Error("expected environments handler to respond");

46+

}

47+

return call;

4448

}

4549
4650

beforeEach(() => {

Original file line numberDiff line numberDiff line change

@@ -236,7 +236,7 @@ describe("models.list", () => {

236236

} as never,

237237

});

238238
239-

const call = respond.mock.calls[0] as

239+

const call = respond.mock.calls.at(0) as

240240

| [boolean, unknown, { code?: number; message?: string }]

241241

| undefined;

242242

expect(call?.[0]).toBe(false);

Original file line numberDiff line numberDiff line change

@@ -55,7 +55,7 @@ describe("native hook relay gateway method", () => {

5555

context: {} as never,

5656

});

5757
58-

const call = respond.mock.calls[0] as

58+

const call = respond.mock.calls.at(0) as

5959

| [boolean, unknown, { code?: string; message?: string }]

6060

| undefined;

6161

expect(call?.[0]).toBe(false);

Original file line numberDiff line numberDiff line change

@@ -53,7 +53,7 @@ function expectRespondError(

5353

respond: ReturnType<typeof vi.fn>,

5454

expected: { code: string; message?: string },

5555

): void {

56-

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

56+

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

5757

expect(call?.[0]).toBe(false);

5858

expect(call?.[1]).toBeUndefined();

5959

const error = requireRecord(call?.[2]);

Original file line numberDiff line numberDiff line change

@@ -1014,7 +1014,7 @@ describe("gateway send mirroring", () => {

10141014

idempotencyKey: "idem-send-options",

10151015

});

10161016
1017-

const options = mocks.deliverOutboundPayloads.mock.calls[0]?.[0];

1017+

const options = mocks.deliverOutboundPayloads.mock.calls.at(0)?.[0];

10181018

expect(options?.forceDocument).toBe(true);

10191019

expect(options?.silent).toBe(true);

10201020

expect(options?.formatting).toEqual({ parseMode: "HTML" });