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

推荐订阅源

M
MIT News - Artificial intelligence
罗磊的独立博客
Hugging Face - Blog
Hugging Face - Blog
Apple Machine Learning Research
Apple Machine Learning Research
Last Week in AI
Last Week in AI
S
SegmentFault 最新的问题
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
美团技术团队
人人都是产品经理
人人都是产品经理
WordPress大学
WordPress大学
The Cloudflare Blog
IT之家
IT之家
雷峰网
雷峰网
小众软件
小众软件
博客园 - 叶小钗
博客园 - 聂微东
爱范儿
爱范儿
博客园 - 司徒正美
博客园 - 三生石上(FineUI控件)
V
Visual Studio Blog
博客园 - 【当耐特】
V
V2EX
博客园_首页
T
Tailwind CSS 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: avoid duplicate session event wait · openclaw/openc...
shakkernerd · 2026-05-10 · via Recent Commits to openclaw:main

@@ -119,21 +119,16 @@ async function emitTranscriptUpdateAndCollectEvents(params: {

119119120120

async function expectNoMessageWithin(params: {

121121

action?: () => Promise<void> | void;

122-

watch: () => Promise<unknown>;

122+

watch: (timeoutMs: number) => Promise<unknown>;

123123

timeoutMs?: number;

124124

}): Promise<void> {

125125

const timeoutMs = params.timeoutMs ?? 300;

126-

let received = false;

127-

const watch = params

128-

.watch()

129-

.then(() => {

130-

received = true;

131-

})

132-

.catch(() => undefined);

126+

const received = params.watch(timeoutMs).then(

127+

() => true,

128+

() => false,

129+

);

133130

await params.action?.();

134-

await new Promise((resolve) => setTimeout(resolve, timeoutMs));

135-

expect(received).toBe(false);

136-

await watch;

131+

await expect(received).resolves.toBe(false);

137132

}

138133139134

describe("session.message websocket events", () => {

@@ -226,19 +221,19 @@ describe("session.message websocket events", () => {

226221

event: "session.message",

227222

});

228223

await expectNoMessageWithin({

229-

watch: () =>

224+

watch: (timeoutMs) =>

230225

onceMessage(

231226

unsubscribedWs,

232227

(message) => message.type === "event" && message.event === "session.message",

233-

300,

228+

timeoutMs,

234229

),

235230

});

236231

await expectNoMessageWithin({

237-

watch: () =>

232+

watch: (timeoutMs) =>

238233

onceMessage(

239234

nodeWs,

240235

(message) => message.type === "event" && message.event === "session.message",

241-

300,

236+

timeoutMs,

242237

),

243238

});

244239

} finally {

@@ -644,15 +639,15 @@ describe("session.message websocket events", () => {

644639

expect(mainAppend.ok).toBe(true);

645640646641

await expectNoMessageWithin({

647-

watch: () =>

642+

watch: (timeoutMs) =>

648643

onceMessage(

649644

ws,

650645

(message) =>

651646

message.type === "event" &&

652647

message.event === "session.message" &&

653648

(message.payload as { sessionKey?: string } | undefined)?.sessionKey ===

654649

"agent:main:worker",

655-

300,

650+

timeoutMs,

656651

),

657652

action: async () => {

658653

const workerAppend = await appendAssistantMessageToSessionTranscript({

@@ -671,15 +666,15 @@ describe("session.message websocket events", () => {

671666

expect(unsubscribeRes.payload?.subscribed).toBe(false);

672667673668

await expectNoMessageWithin({

674-

watch: () =>

669+

watch: (timeoutMs) =>

675670

onceMessage(

676671

ws,

677672

(message) =>

678673

message.type === "event" &&

679674

message.event === "session.message" &&

680675

(message.payload as { sessionKey?: string } | undefined)?.sessionKey ===

681676

"agent:main:main",

682-

300,

677+

timeoutMs,

683678

),

684679

action: async () => {

685680

const hiddenAppend = await appendAssistantMessageToSessionTranscript({