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

推荐订阅源

V
Visual Studio Blog
量子位
大猫的无限游戏
大猫的无限游戏
Hugging Face - Blog
Hugging Face - Blog
S
SegmentFault 最新的问题
Blog — PlanetScale
Blog — PlanetScale
月光博客
月光博客
Google DeepMind News
Google DeepMind News
小众软件
小众软件
WordPress大学
WordPress大学
宝玉的分享
宝玉的分享
MongoDB | Blog
MongoDB | Blog
B
Blog RSS Feed
博客园 - Franky
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
B
Blog
博客园 - 聂微东
The GitHub Blog
The GitHub Blog
Recent Announcements
Recent Announcements
Y
Y Combinator Blog
Microsoft Security Blog
Microsoft Security Blog
雷峰网
雷峰网
Jina AI
Jina AI
酷 壳 – 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
fix(auto-reply): keep group visible replies deliverable (...
steipete · 2026-05-01 · via Recent Commits to openclaw:main

@@ -26,6 +26,14 @@ function createMockQaRuntime(params?: {

2626

const sessionUpdatedAt = new Map<string, number>();

2727

return {

2828

channel: {

29+

mentions: {

30+

buildMentionRegexes() {

31+

return [/^@openclaw\b/i];

32+

},

33+

matchesMentionPatterns(text: string, patterns: RegExp[]) {

34+

return patterns.some((pattern) => pattern.test(text));

35+

},

36+

},

2937

routing: {

3038

resolveAgentRoute({

3139

accountId,

@@ -142,6 +150,35 @@ describe("qa-channel plugin", () => {

142150

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

143151

});

144152153+

it("derives group outbound session routes from explicit group targets", async () => {

154+

const route = await qaChannelPlugin.messaging?.resolveOutboundSessionRoute?.({

155+

cfg: {},

156+

agentId: "main",

157+

accountId: "default",

158+

target: "group:qa-room",

159+

});

160+161+

expect(route).toMatchObject({

162+

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

163+

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

164+

chatType: "group",

165+

to: "group:qa-room",

166+

});

167+

});

168+169+

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

170+

const resolved = qaChannelPlugin.messaging?.resolveSessionConversation?.({

171+

kind: "group",

172+

rawId: "group:qa-room",

173+

});

174+175+

expect(resolved).toMatchObject({

176+

id: "qa-room",

177+

baseConversationId: "qa-room",

178+

parentConversationCandidates: ["qa-room"],

179+

});

180+

});

181+145182

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

146183

const route = await qaChannelPlugin.messaging?.resolveOutboundSessionRoute?.({

147184

cfg: {},

@@ -197,6 +234,53 @@ describe("qa-channel plugin", () => {

197234

}

198235

});

199236237+

it(

238+

"surfaces shared group traffic with the room target as From",

239+

{ timeout: 20_000 },

240+

async () => {

241+

let dispatchedCtx: Record<string, unknown> | null = null;

242+

const harness = await startQaChannelTestHarness({

243+

allowFrom: ["*"],

244+

runtime: createMockQaRuntime({

245+

onDispatch: (ctx) => {

246+

dispatchedCtx = ctx;

247+

},

248+

}),

249+

});

250+251+

try {

252+

harness.state.addInboundMessage({

253+

conversation: { id: "qa-room", kind: "group", title: "QA Room" },

254+

senderId: "alice",

255+

senderName: "Alice",

256+

text: "@openclaw hello",

257+

});

258+259+

const outbound = await harness.state.waitFor({

260+

kind: "message-text",

261+

textIncludes: "qa-echo: @openclaw hello",

262+

direction: "outbound",

263+

timeoutMs: 15_000,

264+

});

265+266+

expect(dispatchedCtx).toMatchObject({

267+

ChatType: "group",

268+

From: "group:qa-room",

269+

To: "group:qa-room",

270+

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

271+

SenderId: "alice",

272+

GroupSubject: "QA Room",

273+

});

274+

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

275+

id: "qa-room",

276+

kind: "group",

277+

});

278+

} finally {

279+

await harness.stop();

280+

}

281+

},

282+

);

283+200284

it("stages inbound image attachments into agent media payload", { timeout: 20_000 }, async () => {

201285

let dispatchedCtx: Record<string, unknown> | null = null;

202286

const harness = await startQaChannelTestHarness({

@@ -396,4 +480,41 @@ describe("qa-channel plugin", () => {

396480

await bus.stop();

397481

}

398482

});

483+484+

it("routes group send targets to group qa bus conversations", async () => {

485+

installQaChannelTestRegistry();

486+

const state = createQaBusState();

487+

const bus = await startQaBusServer({ state });

488+489+

try {

490+

const cfg = createQaChannelConfig({ baseUrl: bus.baseUrl });

491+492+

const result = await qaChannelPlugin.actions?.handleAction?.({

493+

channel: "qa-channel",

494+

action: "send",

495+

cfg,

496+

accountId: "default",

497+

params: {

498+

target: "group:qa-room",

499+

message: "hello group",

500+

},

501+

});

502+

const payload = extractToolPayload(result);

503+

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

504+505+

const outbound = await state.waitFor({

506+

kind: "message-text",

507+

direction: "outbound",

508+

textIncludes: "hello group",

509+

timeoutMs: 5_000,

510+

});

511+

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

512+

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

513+

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

514+

}

515+

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

516+

} finally {

517+

await bus.stop();

518+

}

519+

});

399520

});