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

推荐订阅源

博客园 - 【当耐特】
云风的 BLOG
云风的 BLOG
罗磊的独立博客
C
Check Point Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Blog — PlanetScale
Blog — PlanetScale
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
月光博客
月光博客
大猫的无限游戏
大猫的无限游戏
Google DeepMind News
Google DeepMind News
Engineering at Meta
Engineering at Meta
N
Netflix TechBlog - Medium
宝玉的分享
宝玉的分享
Recent Announcements
Recent Announcements
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园_首页
J
Java Code Geeks
Apple Machine Learning Research
Apple Machine Learning Research
人人都是产品经理
人人都是产品经理
爱范儿
爱范儿
I
InfoQ
Hugging Face - Blog
Hugging Face - Blog
T
Tailwind CSS Blog
B
Blog RSS Feed

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
fix(qa): create Matrix mention progress target · openclaw...
vincentkoc · 2026-05-27 · via Recent Commits to openclaw:main

@@ -3865,64 +3865,87 @@ describe("matrix live qa scenarios", () => {

3865386538663866

it("keeps Matrix-looking tool progress mentions inert in partial previews", async () => {

38673867

const previewEventId = "$tool-progress-mention-preview";

3868-

mockMatrixQaRoomClient({

3869-

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

3870-

events: [

3871-

{

3872-

event: matrixQaMessageEvent({

3873-

kind: "message",

3874-

eventId: previewEventId,

3875-

body: "Working...\n- `tool: read`",

3876-

}),

3877-

since: "driver-sync-preview",

3878-

},

3879-

{

3880-

event: matrixQaMessageEvent({

3881-

kind: "message",

3882-

eventId: "$tool-progress-mention-edit",

3883-

body: "Working...\n- `tool: read`\n- `read from matrix-progress-@room-@alice:matrix-qa.test-!room:matrix-qa.test.txt`",

3884-

formattedBody:

3885-

"Working...<br><ul><li><code>read from matrix-progress-@room-@alice:matrix-qa.test-!room:matrix-qa.test.txt</code></li></ul>",

3886-

mentions: {},

3887-

relatesTo: {

3888-

relType: "m.replace",

3868+

const gatewayWorkspaceDir = await mkdtemp(path.join(os.tmpdir(), "matrix-qa-workspace-"));

3869+

try {

3870+

const { sendTextMessage } = mockMatrixQaRoomClient({

3871+

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

3872+

events: [

3873+

{

3874+

event: matrixQaMessageEvent({

3875+

kind: "message",

38893876

eventId: previewEventId,

3890-

},

3891-

}),

3892-

since: "driver-sync-progress",

3893-

},

3894-

{

3895-

event: ({ sendTextMessage }) =>

3896-

matrixQaMessageEvent({

3877+

body: "Working...\n- `tool: read`",

3878+

}),

3879+

since: "driver-sync-preview",

3880+

},

3881+

{

3882+

event: matrixQaMessageEvent({

38973883

kind: "message",

3898-

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

3899-

body: readMatrixQaReplyDirective(

3900-

mockMessageBody(sendTextMessage, "sendTextMessage"),

3901-

"MATRIX_QA_TOOL_PROGRESS_MENTION_SAFE_FIXED",

3902-

),

3884+

eventId: "$tool-progress-mention-edit",

3885+

body: "Working...\n- `tool: read`\n- `read from matrix-progress-@room-@alice:matrix-qa.test-!room:matrix-qa.test.txt`",

3886+

formattedBody:

3887+

"Working...<br><ul><li><code>read from matrix-progress-@room-@alice:matrix-qa.test-!room:matrix-qa.test.txt</code></li></ul>",

3888+

mentions: {},

39033889

relatesTo: {

39043890

relType: "m.replace",

39053891

eventId: previewEventId,

39063892

},

39073893

}),

3908-

since: "driver-sync-next",

3909-

},

3910-

],

3911-

});

3894+

since: "driver-sync-progress",

3895+

},

3896+

{

3897+

event: ({ sendTextMessage }) =>

3898+

matrixQaMessageEvent({

3899+

kind: "message",

3900+

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

3901+

body: readMatrixQaReplyDirective(

3902+

mockMessageBody(sendTextMessage, "sendTextMessage"),

3903+

"MATRIX_QA_TOOL_PROGRESS_MENTION_SAFE_FIXED",

3904+

),

3905+

relatesTo: {

3906+

relType: "m.replace",

3907+

eventId: previewEventId,

3908+

},

3909+

}),

3910+

since: "driver-sync-next",

3911+

},

3912+

],

3913+

});

391239143913-

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

3915+

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

391439163915-

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

3916-

const artifacts = result.artifacts as {

3917-

driverEventId?: unknown;

3918-

previewEventId?: unknown;

3919-

previewMentions?: unknown;

3920-

reply?: { eventId?: unknown };

3921-

};

3922-

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

3923-

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

3924-

expect(artifacts.previewMentions).toEqual({});

3925-

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

3917+

const result = await runMatrixQaScenario(scenario, {

3918+

...matrixQaScenarioContext(),

3919+

gatewayWorkspaceDir,

3920+

});

3921+

const artifacts = result.artifacts as {

3922+

driverEventId?: unknown;

3923+

previewEventId?: unknown;

3924+

previewMentions?: unknown;

3925+

reply?: { eventId?: unknown };

3926+

token?: unknown;

3927+

};

3928+

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

3929+

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

3930+

expect(artifacts.previewMentions).toEqual({});

3931+

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

3932+

const prompt = mockMessageBody(sendTextMessage, "sendTextMessage");

3933+

expect(prompt).toContain(

3934+

"call the read tool exactly once on `matrix-progress-@room-@alice:matrix-qa.test-!room:matrix-qa.test.txt`",

3935+

);

3936+

expect(prompt).toContain("Do not use search for this check.");

3937+

await expect(

3938+

readFile(

3939+

path.join(

3940+

gatewayWorkspaceDir,

3941+

"matrix-progress-@room-@alice:matrix-qa.test-!room:matrix-qa.test.txt",

3942+

),

3943+

"utf8",

3944+

),

3945+

).resolves.toContain(String(artifacts.token));

3946+

} finally {

3947+

await rm(gatewayWorkspaceDir, { force: true, recursive: true });

3948+

}

39263949

});

3927395039283951

it("preserves separate finalized block events when Matrix block streaming is enabled", async () => {