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

推荐订阅源

Vercel News
Vercel News
博客园 - 司徒正美
C
Check Point Blog
G
Google Developers Blog
The GitHub Blog
The GitHub Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
有赞技术团队
有赞技术团队
P
Proofpoint News Feed
IT之家
IT之家
B
Blog
博客园_首页
量子位
MongoDB | Blog
MongoDB | Blog
博客园 - Franky
J
Java Code Geeks
H
Help Net Security
A
About on SuperTechFans
Apple Machine Learning Research
Apple Machine Learning Research
Jina AI
Jina AI
D
DataBreaches.Net
Y
Y Combinator Blog
大猫的无限游戏
大猫的无限游戏
云风的 BLOG
云风的 BLOG
Google DeepMind News
Google DeepMind News

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): force Matrix mention progress search · openclaw/...
vincentkoc · 2026-05-27 · via Recent Commits to openclaw:main

@@ -3865,87 +3865,73 @@ 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-

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",

3868+

const { sendTextMessage } = mockMatrixQaRoomClient({

3869+

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

3870+

events: [

3871+

{

3872+

event: matrixQaMessageEvent({

3873+

kind: "message",

3874+

eventId: previewEventId,

3875+

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

3876+

}),

3877+

since: "driver-sync-preview",

3878+

},

3879+

{

3880+

event: matrixQaMessageEvent({

3881+

kind: "message",

3882+

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

3883+

body:

3884+

'Working...\n- `search "matrix-progress-@room-@alice:matrix-qa.test-!room:matrix-qa.test.txt" in . -> run sleep 2`',

3885+

formattedBody:

3886+

'Working...<br><ul><li><code>search "matrix-progress-@room-@alice:matrix-qa.test-!room:matrix-qa.test.txt" in . -&gt; run sleep 2</code></li></ul>',

3887+

mentions: {},

3888+

relatesTo: {

3889+

relType: "m.replace",

38763890

eventId: previewEventId,

3877-

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

3878-

}),

3879-

since: "driver-sync-preview",

3880-

},

3881-

{

3882-

event: matrixQaMessageEvent({

3891+

},

3892+

}),

3893+

since: "driver-sync-progress",

3894+

},

3895+

{

3896+

event: ({ sendTextMessage }) =>

3897+

matrixQaMessageEvent({

38833898

kind: "message",

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: {},

3899+

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

3900+

body: readMatrixQaReplyDirective(

3901+

mockMessageBody(sendTextMessage, "sendTextMessage"),

3902+

"MATRIX_QA_TOOL_PROGRESS_MENTION_SAFE_FIXED",

3903+

),

38893904

relatesTo: {

38903905

relType: "m.replace",

38913906

eventId: previewEventId,

38923907

},

38933908

}),

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-

});

3909+

since: "driver-sync-next",

3910+

},

3911+

],

3912+

});

391439133915-

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

3914+

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

391639153917-

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-

}

3916+

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

3917+

const artifacts = result.artifacts as {

3918+

driverEventId?: unknown;

3919+

previewEventId?: unknown;

3920+

previewMentions?: unknown;

3921+

reply?: { eventId?: unknown };

3922+

};

3923+

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

3924+

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

3925+

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

3926+

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

3927+

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

3928+

expect(prompt).toContain(

3929+

"call the exec tool exactly once with this exact command before answering",

3930+

);

3931+

expect(prompt).toContain(

3932+

"`rg -n 'matrix-progress-@room-@alice:matrix-qa.test-!room:matrix-qa.test.txt' . ; sleep 2`",

3933+

);

3934+

expect(prompt).toContain("The QA harness must observe that exec tool call");

39493935

});

3950393639513937

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