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

推荐订阅源

月光博客
月光博客
WordPress大学
WordPress大学
博客园 - 三生石上(FineUI控件)
H
Help Net Security
小众软件
小众软件
The Cloudflare Blog
人人都是产品经理
人人都是产品经理
Apple Machine Learning Research
Apple Machine Learning Research
S
SegmentFault 最新的问题
Last Week in AI
Last Week in AI
爱范儿
爱范儿
量子位
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
IT之家
IT之家
博客园 - 【当耐特】
V
Visual Studio Blog
大猫的无限游戏
大猫的无限游戏
博客园_首页
Jina AI
Jina AI
D
Docker
博客园 - 司徒正美
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Microsoft Security Blog
Microsoft Security 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 dispatch acp binding assertions · openclaw/...
steipete · 2026-05-10 · via Recent Commits to openclaw:main

@@ -2401,18 +2401,11 @@ describe("dispatchReplyFromConfig", () => {

2401240124022402

await dispatchReplyFromConfig({ ctx, cfg, dispatcher, replyResolver });

240324032404-

expect(sessionBindingMocks.resolveByConversation).toHaveBeenCalledWith(

2405-

expect.objectContaining({

2406-

channel: "discord",

2407-

accountId: "work",

2408-

conversationId: "thread-1",

2409-

}),

2410-

);

2411-

expect(dispatcher.sendToolResult).toHaveBeenCalledWith(

2412-

expect.objectContaining({

2413-

text: expect.stringContaining("not currently loaded"),

2414-

}),

2415-

);

2404+

const bindingLookup = sessionBindingMocks.resolveByConversation.mock.calls[0]?.[0];

2405+

expect(bindingLookup?.channel).toBe("discord");

2406+

expect(bindingLookup?.accountId).toBe("work");

2407+

expect(bindingLookup?.conversationId).toBe("thread-1");

2408+

expect(firstToolResultPayload(dispatcher)?.text).toContain("not currently loaded");

24162409

expect(replyResolver).toHaveBeenCalled();

24172410

});

24182411

@@ -2493,21 +2486,18 @@ describe("dispatchReplyFromConfig", () => {

24932486

conversationId: "C123",

24942487

});

24952488

expect(sessionBindingMocks.touch).toHaveBeenCalledWith("binding-acp-current");

2496-

expect(runtime.ensureSession).toHaveBeenCalledWith(

2497-

expect.objectContaining({

2498-

sessionKey: boundSessionKey,

2499-

agent: "opencode",

2500-

}),

2501-

);

2502-

expect(runtime.runTurn).toHaveBeenCalledWith(

2503-

expect.objectContaining({

2504-

text: "continue",

2505-

}),

2506-

);

2489+

const ensureSessionOptions = runtime.ensureSession.mock.calls[0]?.[0] as

2490+

| { agent?: unknown; sessionKey?: unknown }

2491+

| undefined;

2492+

expect(ensureSessionOptions?.sessionKey).toBe(boundSessionKey);

2493+

expect(ensureSessionOptions?.agent).toBe("opencode");

2494+

const runTurnOptions = runtime.runTurn.mock.calls[0]?.[0] as { text?: unknown } | undefined;

2495+

expect(runTurnOptions?.text).toBe("continue");

25072496

expect(replyResolver).not.toHaveBeenCalled();

2508-

expect(dispatcher.sendBlockReply).toHaveBeenCalledWith(

2509-

expect.objectContaining({ text: "Bound ACP reply" }),

2510-

);

2497+

const blockPayload = (dispatcher.sendBlockReply as Mock).mock.calls[0]?.[0] as

2498+

| ReplyPayload

2499+

| undefined;

2500+

expect(blockPayload?.text).toBe("Bound ACP reply");

25112501

});

2512250225132503

it("coalesces tiny ACP token deltas into normal Discord text spacing", async () => {

@@ -2567,9 +2557,10 @@ describe("dispatchReplyFromConfig", () => {

25672557

}

25682558

}

25692559

expect(blockTexts).toEqual(["What do you want to work on?"]);

2570-

expect(dispatcher.sendFinalReply).toHaveBeenCalledWith(

2571-

expect.objectContaining({ text: "What do you want to work on?" }),

2572-

);

2560+

const finalPayload = (dispatcher.sendFinalReply as Mock).mock.calls[0]?.[0] as

2561+

| ReplyPayload

2562+

| undefined;

2563+

expect(finalPayload?.text).toBe("What do you want to work on?");

25732564

});

2574256525752566

it("generates final-mode TTS audio after ACP block streaming completes", async () => {

@@ -2648,19 +2639,16 @@ describe("dispatchReplyFromConfig", () => {

2648263926492640

await dispatchReplyFromConfig({ ctx, cfg: emptyConfig, dispatcher, replyResolver });

265026412651-

expect(replyMediaPathMocks.createReplyMediaPathNormalizer).toHaveBeenCalledWith(

2652-

expect.objectContaining({

2653-

messageProvider: "feishu",

2654-

}),

2655-

);

2656-

expect(dispatcher.sendFinalReply).toHaveBeenCalledWith(

2657-

expect.objectContaining({

2658-

mediaUrl: "/tmp/openclaw-media/normalized-tts.ogg",

2659-

mediaUrls: ["/tmp/openclaw-media/normalized-tts.ogg"],

2660-

audioAsVoice: true,

2661-

spokenText: "Hello from block streaming.",

2662-

}),

2663-

);

2642+

const normalizerOptions = replyMediaPathMocks.createReplyMediaPathNormalizer.mock

2643+

.calls[0]?.[0] as { messageProvider?: unknown } | undefined;

2644+

expect(normalizerOptions?.messageProvider).toBe("feishu");

2645+

const finalPayload = (dispatcher.sendFinalReply as Mock).mock.calls[0]?.[0] as

2646+

| ReplyPayload

2647+

| undefined;

2648+

expect(finalPayload?.mediaUrl).toBe("/tmp/openclaw-media/normalized-tts.ogg");

2649+

expect(finalPayload?.mediaUrls).toStrictEqual(["/tmp/openclaw-media/normalized-tts.ogg"]);

2650+

expect(finalPayload?.audioAsVoice).toBe(true);

2651+

expect(finalPayload?.spokenText).toBe("Hello from block streaming.");

26642652

});

2665265326662654

it("closes oneshot ACP sessions after the turn completes", async () => {

@@ -2702,11 +2690,8 @@ describe("dispatchReplyFromConfig", () => {

2702269027032691

await dispatchReplyFromConfig({ ctx, cfg, dispatcher });

270426922705-

expect(runtime.close).toHaveBeenCalledWith(

2706-

expect.objectContaining({

2707-

reason: "oneshot-complete",

2708-

}),

2709-

);

2693+

const closeOptions = runtime.close.mock.calls[0]?.[0] as { reason?: unknown } | undefined;

2694+

expect(closeOptions?.reason).toBe("oneshot-complete");

27102695

});

2711269627122697

it("deduplicates inbound messages by MessageSid and origin", async () => {