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

推荐订阅源

J
Java Code Geeks
Jina AI
Jina AI
小众软件
小众软件
WordPress大学
WordPress大学
Last Week in AI
Last Week in AI
美团技术团队
V
V2EX
酷 壳 – CoolShell
酷 壳 – CoolShell
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 聂微东
博客园 - 【当耐特】
人人都是产品经理
人人都是产品经理
雷峰网
雷峰网
博客园 - 司徒正美
量子位
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
宝玉的分享
宝玉的分享
月光博客
月光博客
IT之家
IT之家
博客园 - 三生石上(FineUI控件)
大猫的无限游戏
大猫的无限游戏
T
Tailwind CSS Blog
博客园 - Franky

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: clear command mock call at usage · openclaw/opencla...
steipete · 2026-05-13 · via Recent Commits to openclaw:main

@@ -93,6 +93,10 @@ function getRuntimeLog(index: number): string {

9393

return String(call[0]);

9494

}

959596+

function getLastRuntimeLog(): string {

97+

return getRuntimeLog(runtimeLogMock.mock.calls.length - 1);

98+

}

99+96100

function getJoinedRuntimeLogs() {

97101

return getRuntimeLogs().join("\n");

98102

}

@@ -1025,7 +1029,7 @@ describe("statusCommand", () => {

10251029

const allPayload = JSON.parse(getRuntimeLog(0));

10261030

expect(allPayload.securityAudit.summary.critical).toBe(1);

10271031

expect(allPayload.securityAudit.summary.warn).toBe(1);

1028-

const auditParams = mocks.runSecurityAudit.mock.calls.at(0)?.[0];

1032+

const auditParams = mocks.runSecurityAudit.mock.calls[0]?.[0];

10291033

expect(auditParams?.includeFilesystem).toBe(true);

10301034

expect(auditParams?.includeChannelSecurity).toBe(true);

10311035

});

@@ -1038,7 +1042,7 @@ describe("statusCommand", () => {

1038104210391043

await statusCommand({ usage: true, timeoutMs: 1234 }, runtime as never);

104010441041-

const params = snapshotMock.mock.calls.at(-1)?.[0] as

1045+

const params = snapshotMock.mock.calls[snapshotMock.mock.calls.length - 1]?.[0] as

10421046

| {

10431047

config: unknown;

10441048

timeoutMs?: number;

@@ -1083,7 +1087,7 @@ describe("statusCommand", () => {

10831087

await withUnknownUsageStore(async () => {

10841088

runtimeLogMock.mockClear();

10851089

await statusCommand({ json: true }, runtime as never);

1086-

const payload = JSON.parse(String(runtimeLogMock.mock.calls.at(-1)?.[0]));

1090+

const payload = JSON.parse(getLastRuntimeLog());

10871091

expect(payload.sessions.recent[0].totalTokens).toBeNull();

10881092

expect(payload.sessions.recent[0].totalTokensFresh).toBe(false);

10891093

expect(payload.sessions.recent[0].percentUsed).toBeNull();

@@ -1103,7 +1107,7 @@ describe("statusCommand", () => {

11031107

});

11041108

runtimeLogMock.mockClear();

11051109

await statusCommand({ json: true }, runtime as never);

1106-

const payload = JSON.parse(String(runtimeLogMock.mock.calls.at(-1)?.[0]));

1110+

const payload = JSON.parse(getLastRuntimeLog());

11071111

expect(payload.sessions.recent[0].totalTokens).toBe(5000);

11081112

expect(payload.sessions.recent[0].totalTokensFresh).toBe(false);

11091113

expect(payload.sessions.recent[0].percentUsed).toBe(50);

@@ -1278,7 +1282,7 @@ describe("statusCommand", () => {

12781282

});

1279128312801284

await statusCommand({ json: true }, runtime as never);

1281-

const payload = JSON.parse(String(runtimeLogMock.mock.calls.at(-1)?.[0]));

1285+

const payload = JSON.parse(getLastRuntimeLog());

12821286

const gatewayAuthMessage = payload.gateway.error ?? payload.gateway.authWarning;

12831287

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

12841288

expect(gatewayAuthMessage.trim().length).toBeGreaterThan(0);

@@ -1448,7 +1452,7 @@ describe("statusCommand", () => {

14481452

});

1449145314501454

await statusCommand({ json: true }, runtime as never);

1451-

const payload = JSON.parse(String(runtimeLogMock.mock.calls.at(-1)?.[0]));

1455+

const payload = JSON.parse(getLastRuntimeLog());

14521456

expect(payload.sessions.count).toBe(2);

14531457

expect(payload.sessions.paths.length).toBe(2);

14541458

expect(