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

推荐订阅源

Stack Overflow Blog
Stack Overflow Blog
J
Java Code Geeks
Last Week in AI
Last Week in AI
人人都是产品经理
人人都是产品经理
博客园 - 【当耐特】
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
C
Check Point Blog
月光博客
月光博客
腾讯CDC
Engineering at Meta
Engineering at Meta
博客园 - Franky
Vercel News
Vercel News
D
Docker
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
F
Fortinet All Blogs
Microsoft Security Blog
Microsoft Security Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
雷峰网
雷峰网
Google DeepMind News
Google DeepMind News
Martin Fowler
Martin Fowler
GbyAI
GbyAI
B
Blog
Hugging Face - Blog
Hugging Face - Blog
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
fix(matrix): keep fallback tool warnings mention-inert · ...
vincentkoc · 2026-05-28 · via Recent Commits to openclaw:main

@@ -3887,8 +3887,7 @@ describe("matrix live qa scenarios", () => {

38873887

event: matrixQaMessageEvent({

38883888

kind: "message",

38893889

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

3890-

body:

3891-

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

3890+

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

38923891

formattedBody:

38933892

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

38943893

mentions: {},

@@ -3958,8 +3957,7 @@ describe("matrix live qa scenarios", () => {

39583957

event: matrixQaMessageEvent({

39593958

kind: "message",

39603959

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

3961-

body:

3962-

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

3960+

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

39633961

formattedBody:

39643962

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

39653963

mentions: {

@@ -3982,15 +3980,59 @@ describe("matrix live qa scenarios", () => {

39823980

);

39833981

});

398439823983+

it("keeps Matrix-looking top-level tool errors inert after final-first replies", async () => {

3984+

mockMatrixQaRoomClient({

3985+

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

3986+

events: [

3987+

{

3988+

event: ({ sendTextMessage }) =>

3989+

matrixQaMessageEvent({

3990+

kind: "message",

3991+

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

3992+

body: readMatrixQaReplyDirective(

3993+

mockMessageBody(sendTextMessage, "sendTextMessage"),

3994+

"MATRIX_QA_TOOL_PROGRESS_MENTION_SAFE_FIXED",

3995+

),

3996+

}),

3997+

since: "driver-sync-final",

3998+

},

3999+

{

4000+

event: matrixQaMessageEvent({

4001+

kind: "message",

4002+

eventId: "$tool-progress-mention-top-level-progress",

4003+

body: "⚠️ 🛠️ `show matrix-progress-@room-@alice:matrix-qa.test-!room:matrix-qa.test.txt (workspace)` failed",

4004+

formattedBody:

4005+

"<p>⚠️ 🛠️ <code>show matrix-progress-@room-@alice:matrix-qa.test-!room:matrix-qa.test.txt (workspace)</code> failed</p>",

4006+

mentions: {},

4007+

}),

4008+

since: "driver-sync-progress",

4009+

},

4010+

],

4011+

});

4012+4013+

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

4014+4015+

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

4016+

const artifacts = result.artifacts as {

4017+

previewEventId?: unknown;

4018+

previewFormattedBodyPreview?: unknown;

4019+

previewMentions?: unknown;

4020+

reply?: { eventId?: unknown };

4021+

};

4022+

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

4023+

expect(artifacts.previewFormattedBodyPreview).toContain("<code>show matrix-progress-@room");

4024+

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

4025+

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

4026+

});

4027+39854028

it("does not accept top-level finals after a Matrix mention-safety preview", async () => {

39864029

const context = matrixQaScenarioContext();

39874030

const primeRoom = vi.fn().mockResolvedValue("driver-sync-start");

39884031

const sendTextMessage = vi.fn().mockResolvedValue("$tool-progress-mention-stale-trigger");

39894032

const previewEvent = matrixQaMessageEvent({

39904033

kind: "message",

39914034

eventId: "$tool-progress-mention-stale-preview",

3992-

body:

3993-

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

4035+

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

39944036

formattedBody:

39954037

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

39964038

mentions: {},

@@ -4001,19 +4043,21 @@ describe("matrix live qa scenarios", () => {

40014043

context.observedEvents.push(previewEvent);

40024044

return { event: previewEvent, since: "driver-sync-preview" };

40034045

})

4004-

.mockImplementationOnce(async (params: { predicate: (event: MatrixQaObservedEvent) => boolean }) => {

4005-

const topLevelFinal = matrixQaMessageEvent({

4006-

kind: "message",

4007-

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

4008-

body: readMatrixQaReplyDirective(

4009-

mockMessageBody(sendTextMessage, "sendTextMessage"),

4010-

"MATRIX_QA_TOOL_PROGRESS_MENTION_SAFE_FIXED",

4011-

),

4012-

});

4013-

expect(params.predicate(topLevelFinal)).toBe(false);

4014-

context.observedEvents.push(topLevelFinal);

4015-

throw new Error("timed out after 8000ms waiting for Matrix room event");

4016-

});

4046+

.mockImplementationOnce(

4047+

async (params: { predicate: (event: MatrixQaObservedEvent) => boolean }) => {

4048+

const topLevelFinal = matrixQaMessageEvent({

4049+

kind: "message",

4050+

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

4051+

body: readMatrixQaReplyDirective(

4052+

mockMessageBody(sendTextMessage, "sendTextMessage"),

4053+

"MATRIX_QA_TOOL_PROGRESS_MENTION_SAFE_FIXED",

4054+

),

4055+

});

4056+

expect(params.predicate(topLevelFinal)).toBe(false);

4057+

context.observedEvents.push(topLevelFinal);

4058+

throw new Error("timed out after 8000ms waiting for Matrix room event");

4059+

},

4060+

);

40174061

createMatrixQaClient.mockReturnValue({

40184062

primeRoom,

40194063

sendTextMessage,