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

推荐订阅源

D
DataBreaches.Net
IT之家
IT之家
The Cloudflare Blog
Apple Machine Learning Research
Apple Machine Learning Research
WordPress大学
WordPress大学
N
Netflix TechBlog - Medium
阮一峰的网络日志
阮一峰的网络日志
P
Proofpoint News Feed
L
LangChain Blog
博客园 - Franky
美团技术团队
J
Java Code Geeks
Microsoft Security Blog
Microsoft Security Blog
博客园 - 叶小钗
小众软件
小众软件
Y
Y Combinator Blog
B
Blog RSS Feed
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
D
Docker
Hugging Face - Blog
Hugging Face - Blog
Jina AI
Jina AI
罗磊的独立博客
大猫的无限游戏
大猫的无限游戏
Vercel News
Vercel News

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: tighten command json assertions · openclaw/openclaw...
steipete · 2026-05-10 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -314,9 +314,12 @@ describe("channels list", () => {

314314

const payload = JSON.parse(runtime.log.mock.calls[0]?.[0] as string) as {

315315

chat: Record<string, { origin: string; installed: boolean }>;

316316

};

317-

expect(payload.chat.telegram).toMatchObject({ origin: "configured", installed: true });

318-

expect(payload.chat.discord).toMatchObject({ origin: "available", installed: true });

319-

expect(payload.chat.qqbot).toMatchObject({ origin: "installable", installed: false });

317+

expect(payload.chat.telegram?.origin).toBe("configured");

318+

expect(payload.chat.telegram?.installed).toBe(true);

319+

expect(payload.chat.discord?.origin).toBe("available");

320+

expect(payload.chat.discord?.installed).toBe(true);

321+

expect(payload.chat.qqbot?.origin).toBe("installable");

322+

expect(payload.chat.qqbot?.installed).toBe(false);

320323

});

321324
322325

it(

@@ -355,10 +358,8 @@ describe("channels list", () => {

355358

const payload = JSON.parse(runtime.log.mock.calls[0]?.[0] as string) as {

356359

chat: Record<string, { origin: string; installed: boolean }>;

357360

};

358-

expect(payload.chat.wecom).toMatchObject({

359-

origin: "available",

360-

installed: true,

361-

});

361+

expect(payload.chat.wecom?.origin).toBe("available");

362+

expect(payload.chat.wecom?.installed).toBe(true);

362363

},

363364

);

364365

});

Original file line numberDiff line numberDiff line change

@@ -98,25 +98,15 @@ describe("flows commands", () => {

9898

}>;

9999

};

100100
101-

expect(payload).toMatchObject({

102-

count: 1,

103-

status: "blocked",

104-

flows: [

105-

{

106-

flowId: flow.flowId,

107-

taskSummary: {

108-

total: 1,

109-

active: 1,

110-

},

111-

tasks: [

112-

{

113-

runId: "run-child-1",

114-

label: "Inspect PR 123",

115-

},

116-

],

117-

},

118-

],

119-

});

101+

expect(payload.count).toBe(1);

102+

expect(payload.status).toBe("blocked");

103+

expect(payload.flows).toHaveLength(1);

104+

expect(payload.flows[0]?.flowId).toBe(flow.flowId);

105+

expect(payload.flows[0]?.taskSummary.total).toBe(1);

106+

expect(payload.flows[0]?.taskSummary.active).toBe(1);

107+

expect(payload.flows[0]?.tasks).toHaveLength(1);

108+

expect(payload.flows[0]?.tasks[0]?.runId).toBe("run-child-1");

109+

expect(payload.flows[0]?.tasks[0]?.label).toBe("Inspect PR 123");

120110

});

121111

});

122112
Original file line numberDiff line numberDiff line change

@@ -82,14 +82,13 @@ describe("tasks JSON commands", () => {

8282

status: string | null;

8383

tasks: Array<{ runtime: string; status: string; runId: string }>;

8484

};

85-

expect(payload).toMatchObject({

86-

count: 1,

87-

runtime: "cli",

88-

status: "running",

89-

});

90-

expect(payload.tasks).toEqual([

91-

expect.objectContaining({ runtime: "cli", status: "running", runId: "run-cli" }),

92-

]);

85+

expect(payload.count).toBe(1);

86+

expect(payload.runtime).toBe("cli");

87+

expect(payload.status).toBe("running");

88+

expect(payload.tasks).toHaveLength(1);

89+

expect(payload.tasks[0]?.runtime).toBe("cli");

90+

expect(payload.tasks[0]?.status).toBe("running");

91+

expect(payload.tasks[0]?.runId).toBe("run-cli");

9392

});

9493

});

9594

@@ -148,13 +147,10 @@ describe("tasks JSON commands", () => {

148147

expect(payload.summary.taskFlows.byCode.stale_waiting).toBe(1);

149148

expect(payload.summary.taskFlows.byCode.missing_linked_tasks).toBe(2);

150149

expect(payload.summary.combined).toEqual({ total: 5, errors: 3, warnings: 2 });

151-

expect(payload.findings).toEqual([

152-

expect.objectContaining({

153-

kind: "task_flow",

154-

code: "stale_running",

155-

token: runningFlow.flowId,

156-

}),

157-

]);

150+

expect(payload.findings).toHaveLength(1);

151+

expect(payload.findings[0]?.kind).toBe("task_flow");

152+

expect(payload.findings[0]?.code).toBe("stale_running");

153+

expect(payload.findings[0]?.token).toBe(runningFlow.flowId);

158154

});

159155

});

160156

});