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

推荐订阅源

N
Netflix TechBlog - Medium
IT之家
IT之家
博客园_首页
Hugging Face - Blog
Hugging Face - Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
美团技术团队
小众软件
小众软件
博客园 - 叶小钗
WordPress大学
WordPress大学
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 三生石上(FineUI控件)
罗磊的独立博客
博客园 - Franky
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Last Week in AI
Last Week in AI
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
有赞技术团队
有赞技术团队
T
Tailwind CSS Blog
宝玉的分享
宝玉的分享
博客园 - 【当耐特】
月光博客
月光博客
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
酷 壳 – CoolShell
酷 壳 – CoolShell
人人都是产品经理
人人都是产品经理

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 channel assertions · openclaw/openclaw@b...
steipete · 2026-05-11 · via Recent Commits to openclaw:main

@@ -201,10 +201,8 @@ describe("qa-channel plugin", () => {

201201

target: "thread:qa-room/thread-1",

202202

});

203203204-

expect(route).toMatchObject({

205-

sessionKey: "agent:main:qa-channel:channel:thread:qa-room/thread-1",

206-

baseSessionKey: "agent:main:qa-channel:channel:thread:qa-room/thread-1",

207-

});

204+

expect(route?.sessionKey).toBe("agent:main:qa-channel:channel:thread:qa-room/thread-1");

205+

expect(route?.baseSessionKey).toBe("agent:main:qa-channel:channel:thread:qa-room/thread-1");

208206

expect(route?.threadId).toBeUndefined();

209207

});

210208

@@ -216,12 +214,10 @@ describe("qa-channel plugin", () => {

216214

target: "group:qa-room",

217215

});

218216219-

expect(route).toMatchObject({

220-

sessionKey: "agent:main:qa-channel:group:group:qa-room",

221-

baseSessionKey: "agent:main:qa-channel:group:group:qa-room",

222-

chatType: "group",

223-

to: "group:qa-room",

224-

});

217+

expect(route?.sessionKey).toBe("agent:main:qa-channel:group:group:qa-room");

218+

expect(route?.baseSessionKey).toBe("agent:main:qa-channel:group:group:qa-room");

219+

expect(route?.chatType).toBe("group");

220+

expect(route?.to).toBe("group:qa-room");

225221

});

226222227223

it("normalizes explicit group targets for session group policy lookup", () => {

@@ -230,11 +226,9 @@ describe("qa-channel plugin", () => {

230226

rawId: "group:qa-room",

231227

});

232228233-

expect(resolved).toMatchObject({

234-

id: "qa-room",

235-

baseConversationId: "qa-room",

236-

parentConversationCandidates: ["qa-room"],

237-

});

229+

expect(resolved?.id).toBe("qa-room");

230+

expect(resolved?.baseConversationId).toBe("qa-room");

231+

expect(resolved?.parentConversationCandidates).toEqual(["qa-room"]);

238232

});

239233240234

it("recovers thread-aware outbound session routes from currentSessionKey", async () => {

@@ -246,11 +240,9 @@ describe("qa-channel plugin", () => {

246240

currentSessionKey: "agent:main:qa-channel:channel:channel:qa-room:thread:thread-1",

247241

});

248242249-

expect(route).toMatchObject({

250-

sessionKey: "agent:main:qa-channel:channel:channel:qa-room:thread:thread-1",

251-

baseSessionKey: "agent:main:qa-channel:channel:channel:qa-room",

252-

threadId: "thread-1",

253-

});

243+

expect(route?.sessionKey).toBe("agent:main:qa-channel:channel:channel:qa-room:thread:thread-1");

244+

expect(route?.baseSessionKey).toBe("agent:main:qa-channel:channel:channel:qa-room");

245+

expect(route?.threadId).toBe("thread-1");

254246

});

255247256248

it('does not recover currentSessionKey threads for shared dmScope "main" DMs', async () => {

@@ -262,10 +254,8 @@ describe("qa-channel plugin", () => {

262254

currentSessionKey: "agent:main:main:thread:thread-1",

263255

});

264256265-

expect(route).toMatchObject({

266-

sessionKey: "agent:main:main",

267-

baseSessionKey: "agent:main:main",

268-

});

257+

expect(route?.sessionKey).toBe("agent:main:main");

258+

expect(route?.baseSessionKey).toBe("agent:main:main");

269259

expect(route?.threadId).toBeUndefined();

270260

});

271261

@@ -358,18 +348,19 @@ describe("qa-channel plugin", () => {

358348

timeoutMs: 15_000,

359349

});

360350361-

expect(dispatchedCtx).toMatchObject({

362-

ChatType: "group",

363-

From: "group:qa-room",

364-

To: "group:qa-room",

365-

SessionKey: "qa-agent:group:group:qa-room",

366-

SenderId: "alice",

367-

GroupSubject: "QA Room",

368-

});

369-

expect("conversation" in outbound && outbound.conversation).toMatchObject({

370-

id: "qa-room",

371-

kind: "group",

372-

});

351+

const ctx = expectDispatchedContext(dispatchedCtx);

352+

expect(ctx.ChatType).toBe("group");

353+

expect(ctx.From).toBe("group:qa-room");

354+

expect(ctx.To).toBe("group:qa-room");

355+

expect(ctx.SessionKey).toBe("qa-agent:group:group:qa-room");

356+

expect(ctx.SenderId).toBe("alice");

357+

expect(ctx.GroupSubject).toBe("QA Room");

358+

expect("conversation" in outbound).toBe(true);

359+

if (!("conversation" in outbound)) {

360+

throw new Error("expected outbound message conversation");

361+

}

362+

expect(outbound.conversation.id).toBe("qa-room");

363+

expect(outbound.conversation.kind).toBe("group");

373364

} finally {

374365

await harness.stop();

375366

}

@@ -418,7 +409,8 @@ describe("qa-channel plugin", () => {

418409

MediaType?: string;

419410

MediaTypes?: string[];

420411

};

421-

expect(mediaCtx.MediaPath).toEqual(expect.stringContaining("red-top-blue-bottom"));

412+

expect(typeof mediaCtx.MediaPath).toBe("string");

413+

expect(mediaCtx.MediaPath).toContain("red-top-blue-bottom");

422414

expect(mediaCtx.MediaType).toBe("image/png");

423415

expect(mediaCtx.MediaPaths).toEqual([mediaCtx.MediaPath]);

424416

expect(mediaCtx.MediaTypes).toEqual(["image/png"]);

@@ -552,8 +544,8 @@ describe("qa-channel plugin", () => {

552544

message: "hello from action",

553545

},

554546

});

555-

const payload = extractToolPayload(result);

556-

expect(payload).toMatchObject({ message: { text: "hello from action" } });

547+

const payload = extractToolPayload(result) as { message: { text: string } };

548+

expect(payload.message.text).toBe("hello from action");

557549558550

const outbound = await state.waitFor({

559551

kind: "message-text",

@@ -565,7 +557,8 @@ describe("qa-channel plugin", () => {

565557

if (!("conversation" in outbound)) {

566558

throw new Error("expected outbound message match");

567559

}

568-

expect(outbound.conversation).toMatchObject({ id: "qa-room", kind: "channel" });

560+

expect(outbound.conversation.id).toBe("qa-room");

561+

expect(outbound.conversation.kind).toBe("channel");

569562

} finally {

570563

await bus.stop();

571564

}

@@ -589,8 +582,8 @@ describe("qa-channel plugin", () => {

589582

message: "hello group",

590583

},

591584

});

592-

const payload = extractToolPayload(result);

593-

expect(payload).toMatchObject({ message: { text: "hello group" } });

585+

const payload = extractToolPayload(result) as { message: { text: string } };

586+

expect(payload.message.text).toBe("hello group");

594587595588

const outbound = await state.waitFor({

596589

kind: "message-text",

@@ -602,7 +595,8 @@ describe("qa-channel plugin", () => {

602595

if (!("conversation" in outbound)) {

603596

throw new Error("expected outbound message match");

604597

}

605-

expect(outbound.conversation).toMatchObject({ id: "qa-room", kind: "group" });

598+

expect(outbound.conversation.id).toBe("qa-room");

599+

expect(outbound.conversation.kind).toBe("group");

606600

} finally {

607601

await bus.stop();

608602

}