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

推荐订阅源

D
Docker
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - Franky
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
A
About on SuperTechFans
博客园 - 【当耐特】
Microsoft Security Blog
Microsoft Security Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
The GitHub Blog
The GitHub Blog
雷峰网
雷峰网
博客园_首页
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
IT之家
IT之家
博客园 - 叶小钗
Google DeepMind News
Google DeepMind News
aimingoo的专栏
aimingoo的专栏
博客园 - 聂微东
B
Blog RSS Feed
H
Help Net Security
Recent Announcements
Recent Announcements
阮一峰的网络日志
阮一峰的网络日志
D
DataBreaches.Net
L
LangChain Blog
Vercel News
Vercel 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
test: align extension inbound context assertions · opencl...
steipete · 2026-05-27 · via Recent Commits to openclaw:main

@@ -13,15 +13,9 @@ describe("createMatrixRoomMessageHandler inbound body formatting", () => {

1313

MessageThreadId?: string;

1414

RawBody?: string;

1515

ReplyToId?: string;

16-

SupplementalContext?: {

17-

quote?: {

18-

body?: string;

19-

sender?: string;

20-

};

21-

thread?: {

22-

starterBody?: string;

23-

};

24-

};

16+

ReplyToBody?: string;

17+

ReplyToSender?: string;

18+

ThreadStarterBody?: string;

2519

};

26202721

function createQuotedReplyVisibilityHarness(contextVisibility: "allowlist" | "allowlist_quote") {

@@ -127,7 +121,7 @@ describe("createMatrixRoomMessageHandler inbound body formatting", () => {

127121128122

const finalized = latestFinalizedReplyContext(finalizeInboundContext);

129123

expect(finalized.MessageThreadId).toBe("$thread-root");

130-

expect(finalized.SupplementalContext?.thread?.starterBody).toBe(

124+

expect(finalized.ThreadStarterBody).toBe(

131125

"Matrix thread root $thread-root from Alice:\nRoot topic",

132126

);

133127

// Thread messages get thread-scoped session keys (thread isolation feature).

@@ -277,9 +271,9 @@ describe("createMatrixRoomMessageHandler inbound body formatting", () => {

277271

const finalized = latestFinalizedReplyContext(finalizeInboundContext);

278272

expect(finalized.MessageThreadId).toBe("$thread-root");

279273

expect(finalized.ReplyToId).toBeUndefined();

280-

expect(finalized.SupplementalContext?.quote?.sender).toBe("Alice");

281-

expect(finalized.SupplementalContext?.quote?.body).toBe("[Poll]\nLunch?\n\n1. Pizza\n2. Sushi");

282-

expect(finalized.SupplementalContext?.thread?.starterBody).toBe(

274+

expect(finalized.ReplyToSender).toBe("Alice");

275+

expect(finalized.ReplyToBody).toBe("[Poll]\nLunch?\n\n1. Pizza\n2. Sushi");

276+

expect(finalized.ThreadStarterBody).toBe(

283277

"Matrix thread root $thread-root from Bob:\nRoot topic",

284278

);

285279

});

@@ -319,9 +313,9 @@ describe("createMatrixRoomMessageHandler inbound body formatting", () => {

319313

const finalized = latestFinalizedReplyContext(finalizeInboundContext);

320314

expect(finalized.MessageThreadId).toBe("$thread-root");

321315

expect(finalized.ReplyToId).toBeUndefined();

322-

expect(finalized.SupplementalContext?.quote?.sender).toBe("Alice");

323-

expect(finalized.SupplementalContext?.quote?.body).toBe("Root topic");

324-

expect(finalized.SupplementalContext?.thread?.starterBody).toBe(

316+

expect(finalized.ReplyToSender).toBe("Alice");

317+

expect(finalized.ReplyToBody).toBe("Root topic");

318+

expect(finalized.ThreadStarterBody).toBe(

325319

"Matrix thread root $thread-root from Alice:\nRoot topic",

326320

);

327321

expect(getEvent).toHaveBeenCalledTimes(1);

@@ -370,9 +364,9 @@ describe("createMatrixRoomMessageHandler inbound body formatting", () => {

370364

);

371365372366

const finalized = latestFinalizedReplyContext(finalizeInboundContext);

373-

expect(finalized.SupplementalContext?.thread?.starterBody).toBeUndefined();

374-

expect(finalized.SupplementalContext?.quote?.body).toBeUndefined();

375-

expect(finalized.SupplementalContext?.quote?.sender).toBeUndefined();

367+

expect(finalized.ThreadStarterBody).toBeUndefined();

368+

expect(finalized.ReplyToBody).toBeUndefined();

369+

expect(finalized.ReplyToSender).toBeUndefined();

376370

});

377371378372

it("drops quoted reply context fetched from non-allowlisted room senders", async () => {

@@ -381,8 +375,8 @@ describe("createMatrixRoomMessageHandler inbound body formatting", () => {

381375

await sendQuotedReply(handler);

382376383377

const finalized = latestFinalizedReplyContext(finalizeInboundContext);

384-

expect(finalized.SupplementalContext?.quote?.body).toBeUndefined();

385-

expect(finalized.SupplementalContext?.quote?.sender).toBeUndefined();

378+

expect(finalized.ReplyToBody).toBeUndefined();

379+

expect(finalized.ReplyToSender).toBeUndefined();

386380

});

387381388382

it("keeps quoted reply context in allowlist_quote mode", async () => {

@@ -392,7 +386,7 @@ describe("createMatrixRoomMessageHandler inbound body formatting", () => {

392386

await sendQuotedReply(handler);

393387394388

const finalized = latestFinalizedReplyContext(finalizeInboundContext);

395-

expect(finalized.SupplementalContext?.quote?.body).toBe("Quoted payload");

396-

expect(finalized.SupplementalContext?.quote?.sender).toBe("Mallory");

389+

expect(finalized.ReplyToBody).toBe("Quoted payload");

390+

expect(finalized.ReplyToSender).toBe("Mallory");

397391

});

398392

});