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

推荐订阅源

人人都是产品经理
人人都是产品经理
Apple Machine Learning Research
Apple Machine Learning Research
云风的 BLOG
云风的 BLOG
罗磊的独立博客
博客园 - 三生石上(FineUI控件)
量子位
GbyAI
GbyAI
腾讯CDC
T
Tailwind CSS Blog
博客园 - Franky
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
D
Docker
G
Google Developers Blog
aimingoo的专栏
aimingoo的专栏
The GitHub Blog
The GitHub Blog
Microsoft Security Blog
Microsoft Security Blog
Stack Overflow Blog
Stack Overflow Blog
Hugging Face - Blog
Hugging Face - Blog
小众软件
小众软件
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
N
Netflix TechBlog - Medium
Jina AI
Jina AI
IT之家
IT之家
Y
Y Combinator 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: tighten commitment chain assertions · openclaw/open...
steipete · 2026-05-09 · via Recent Commits to openclaw:main

@@ -112,14 +112,12 @@ describe("commitments full-chain integration", () => {

112112

if (!pendingCommitment) {

113113

throw new Error("Expected pending commitment");

114114

}

115-

expect(pendingCommitment).toMatchObject({

116-

status: "pending",

117-

agentId: "main",

118-

sessionKey,

119-

channel: "telegram",

120-

to: "155462274",

121-

suggestedText: "How did the interview go?",

122-

});

115+

expect(pendingCommitment.status).toBe("pending");

116+

expect(pendingCommitment.agentId).toBe("main");

117+

expect(pendingCommitment.sessionKey).toBe(sessionKey);

118+

expect(pendingCommitment.channel).toBe("telegram");

119+

expect(pendingCommitment.to).toBe("155462274");

120+

expect(pendingCommitment.suggestedText).toBe("How did the interview go?");

123121

expect(pendingCommitment.dueWindow.earliestMs).toBe(dueMs);

124122

expect(pendingCommitment).not.toHaveProperty("sourceUserText");

125123

expect(pendingCommitment).not.toHaveProperty("sourceAssistantText");

@@ -161,21 +159,22 @@ describe("commitments full-chain integration", () => {

161159

});

162160163161

expect(result.status).toBe("ran");

164-

expect(sendTelegram).toHaveBeenCalledWith(

165-

"155462274",

166-

"How did the interview go?",

167-

expect.objectContaining({ accountId: "primary" }),

168-

);

162+

expect(sendTelegram).toHaveBeenCalledOnce();

163+

const sendCall = sendTelegram.mock.calls[0];

164+

if (!sendCall) {

165+

throw new Error("Expected Telegram send call");

166+

}

167+

expect(sendCall[0]).toBe("155462274");

168+

expect(sendCall[1]).toBe("How did the interview go?");

169+

expect(sendCall[2]?.accountId).toBe("primary");

169170

const deliveredStore = await loadCommitmentStore();

170171

const [deliveredCommitment] = deliveredStore.commitments;

171172

if (!deliveredCommitment) {

172173

throw new Error("Expected delivered commitment");

173174

}

174-

expect(deliveredCommitment).toMatchObject({

175-

status: "sent",

176-

attempts: 1,

177-

sentAtMs: dueMs + 60_000,

178-

});

175+

expect(deliveredCommitment.status).toBe("sent");

176+

expect(deliveredCommitment.attempts).toBe(1);

177+

expect(deliveredCommitment.sentAtMs).toBe(dueMs + 60_000);

179178

});

180179

});

181180

});