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

推荐订阅源

博客园 - 叶小钗
爱范儿
爱范儿
WordPress大学
WordPress大学
Last Week in AI
Last Week in AI
博客园 - 聂微东
雷峰网
雷峰网
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 三生石上(FineUI控件)
T
Tailwind CSS Blog
博客园 - Franky
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园_首页
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 司徒正美
月光博客
月光博客
大猫的无限游戏
大猫的无限游戏
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
The Cloudflare Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
人人都是产品经理
人人都是产品经理
宝玉的分享
宝玉的分享
罗磊的独立博客
Jina AI
Jina AI

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 qa matrix preview assertions · openclaw/ope...
steipete · 2026-05-10 · via Recent Commits to openclaw:main

@@ -2613,55 +2613,44 @@ describe("matrix live qa scenarios", () => {

2613261326142614

const scenario = requireMatrixQaScenario("matrix-room-quiet-streaming-preview");

261526152616-

await expect(

2617-

runMatrixQaScenario(scenario, {

2618-

baseUrl: "http://127.0.0.1:28008/",

2619-

canary: undefined,

2620-

driverAccessToken: "driver-token",

2621-

driverUserId: "@driver:matrix-qa.test",

2622-

observedEvents: [],

2623-

observerAccessToken: "observer-token",

2624-

observerUserId: "@observer:matrix-qa.test",

2625-

roomId: "!main:matrix-qa.test",

2626-

restartGateway: undefined,

2627-

syncState: {},

2628-

sutAccessToken: "sut-token",

2629-

sutUserId: "@sut:matrix-qa.test",

2630-

timeoutMs: 8_000,

2631-

topology: {

2632-

defaultRoomId: "!main:matrix-qa.test",

2633-

defaultRoomKey: "main",

2634-

rooms: [],

2635-

},

2636-

}),

2637-

).resolves.toMatchObject({

2638-

artifacts: {

2639-

driverEventId: "$quiet-stream-trigger",

2640-

previewEventId: "$quiet-preview",

2641-

reply: {

2642-

eventId: "$quiet-final",

2643-

},

2616+

const result = await runMatrixQaScenario(scenario, {

2617+

baseUrl: "http://127.0.0.1:28008/",

2618+

canary: undefined,

2619+

driverAccessToken: "driver-token",

2620+

driverUserId: "@driver:matrix-qa.test",

2621+

observedEvents: [],

2622+

observerAccessToken: "observer-token",

2623+

observerUserId: "@observer:matrix-qa.test",

2624+

roomId: "!main:matrix-qa.test",

2625+

restartGateway: undefined,

2626+

syncState: {},

2627+

sutAccessToken: "sut-token",

2628+

sutUserId: "@sut:matrix-qa.test",

2629+

timeoutMs: 8_000,

2630+

topology: {

2631+

defaultRoomId: "!main:matrix-qa.test",

2632+

defaultRoomKey: "main",

2633+

rooms: [],

26442634

},

26452635

});

2636+

const artifacts = result.artifacts as {

2637+

driverEventId?: unknown;

2638+

previewEventId?: unknown;

2639+

reply?: { eventId?: unknown };

2640+

};

2641+

expect(artifacts.driverEventId).toBe("$quiet-stream-trigger");

2642+

expect(artifacts.previewEventId).toBe("$quiet-preview");

2643+

expect(artifacts.reply?.eventId).toBe("$quiet-final");

2646264426472645

expect(sendTextMessage).toHaveBeenCalledWith({

26482646

body: expect.stringContaining("Quiet streaming QA check"),

26492647

mentionUserIds: ["@sut:matrix-qa.test"],

26502648

roomId: "!main:matrix-qa.test",

26512649

});

2652-

expect(waitForRoomEvent).toHaveBeenNthCalledWith(

2653-

1,

2654-

expect.objectContaining({

2655-

since: "driver-sync-start",

2656-

}),

2657-

);

2658-

expect(waitForRoomEvent).toHaveBeenNthCalledWith(

2659-

2,

2660-

expect.objectContaining({

2661-

predicate: expect.any(Function),

2662-

since: "driver-sync-preview",

2663-

}),

2664-

);

2650+

expect(waitForRoomEvent.mock.calls[0]?.[0]?.since).toBe("driver-sync-start");

2651+

const finalWaitOptions = waitForRoomEvent.mock.calls[1]?.[0];

2652+

expect(typeof finalWaitOptions?.predicate).toBe("function");

2653+

expect(finalWaitOptions?.since).toBe("driver-sync-preview");

26652654

});

2666265526672656

it("captures partial preview text messages before the finalized Matrix reply", async () => {

@@ -2699,15 +2688,15 @@ describe("matrix live qa scenarios", () => {

2699268827002689

const scenario = requireMatrixQaScenario("matrix-room-partial-streaming-preview");

270126902702-

await expect(runMatrixQaScenario(scenario, matrixQaScenarioContext())).resolves.toMatchObject({

2703-

artifacts: {

2704-

driverEventId: "$partial-stream-trigger",

2705-

previewEventId: "$partial-preview",

2706-

reply: {

2707-

eventId: "$partial-final",

2708-

},

2709-

},

2710-

});

2691+

const result = await runMatrixQaScenario(scenario, matrixQaScenarioContext());

2692+

const artifacts = result.artifacts as {

2693+

driverEventId?: unknown;

2694+

previewEventId?: unknown;

2695+

reply?: { eventId?: unknown };

2696+

};

2697+

expect(artifacts.driverEventId).toBe("$partial-stream-trigger");

2698+

expect(artifacts.previewEventId).toBe("$partial-preview");

2699+

expect(artifacts.reply?.eventId).toBe("$partial-final");

2711270027122701

expect(sendTextMessage).toHaveBeenCalledWith({

27132702

body: expect.stringContaining("Partial streaming QA check"),

@@ -2750,16 +2739,19 @@ describe("matrix live qa scenarios", () => {

2750273927512740

const scenario = requireMatrixQaScenario("matrix-room-tool-progress-preview");

275227412753-

await expect(runMatrixQaScenario(scenario, matrixQaScenarioContext())).resolves.toMatchObject({

2754-

artifacts: {

2755-

driverEventId: "$tool-progress-trigger",

2756-

previewBodyPreview: "Barnacling...\n`📖 Read: from /tmp/qa/workspace/QA_KICKOFF_TASK.md`",

2757-

previewEventId: "$tool-progress-preview",

2758-

reply: {

2759-

eventId: "$tool-progress-final",

2760-

},

2761-

},

2762-

});

2742+

const result = await runMatrixQaScenario(scenario, matrixQaScenarioContext());

2743+

const artifacts = result.artifacts as {

2744+

driverEventId?: unknown;

2745+

previewBodyPreview?: unknown;

2746+

previewEventId?: unknown;

2747+

reply?: { eventId?: unknown };

2748+

};

2749+

expect(artifacts.driverEventId).toBe("$tool-progress-trigger");

2750+

expect(artifacts.previewBodyPreview).toBe(

2751+

"Barnacling...\n`📖 Read: from /tmp/qa/workspace/QA_KICKOFF_TASK.md`",

2752+

);

2753+

expect(artifacts.previewEventId).toBe("$tool-progress-preview");

2754+

expect(artifacts.reply?.eventId).toBe("$tool-progress-final");

27632755

const prompt = String(sendTextMessage.mock.calls[0]?.[0]?.body);

27642756

expect(prompt).toContain("use the read tool exactly once on `QA_KICKOFF_TASK.md`");

27652757

expect(prompt).toContain("Do not read `HEARTBEAT.md`");

@@ -2812,16 +2804,17 @@ describe("matrix live qa scenarios", () => {

2812280428132805

const scenario = requireMatrixQaScenario("matrix-room-tool-progress-preview");

281428062815-

await expect(runMatrixQaScenario(scenario, matrixQaScenarioContext())).resolves.toMatchObject({

2816-

artifacts: {

2817-

driverEventId: "$tool-progress-generic-trigger",

2818-

previewBodyPreview: "- `tool: exec_command`",

2819-

previewEventId: "$tool-progress-generic-preview",

2820-

reply: {

2821-

eventId: "$tool-progress-generic-final",

2822-

},

2823-

},

2824-

});

2807+

const result = await runMatrixQaScenario(scenario, matrixQaScenarioContext());

2808+

const artifacts = result.artifacts as {

2809+

driverEventId?: unknown;

2810+

previewBodyPreview?: unknown;

2811+

previewEventId?: unknown;

2812+

reply?: { eventId?: unknown };

2813+

};

2814+

expect(artifacts.driverEventId).toBe("$tool-progress-generic-trigger");

2815+

expect(artifacts.previewBodyPreview).toBe("- `tool: exec_command`");

2816+

expect(artifacts.previewEventId).toBe("$tool-progress-generic-preview");

2817+

expect(artifacts.reply?.eventId).toBe("$tool-progress-generic-final");

28252818

});

2826281928272820

it("reports Matrix tool progress preview candidates when the progress wait times out", async () => {