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

推荐订阅源

H
Help Net Security
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 【当耐特】
Microsoft Azure Blog
Microsoft Azure Blog
Google DeepMind News
Google DeepMind News
Apple Machine Learning Research
Apple Machine Learning Research
有赞技术团队
有赞技术团队
Y
Y Combinator Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
爱范儿
爱范儿
L
LangChain Blog
IT之家
IT之家
酷 壳 – CoolShell
酷 壳 – CoolShell
MongoDB | Blog
MongoDB | Blog
Hugging Face - Blog
Hugging Face - Blog
G
Google Developers Blog
T
Tailwind CSS Blog
Engineering at Meta
Engineering at Meta
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
宝玉的分享
宝玉的分享
博客园 - 三生石上(FineUI控件)
D
DataBreaches.Net
Recent Announcements
Recent Announcements
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

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(whatsapp): pass routing ctx to transcribeFirstAudio s...
hclsys · 2026-05-10 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -9,6 +9,7 @@ Docs: https://docs.openclaw.ai

99

### Fixes

1010
1111

- Feishu: auto-thread `message(action="send")` replies inside the topic when the active session is group_topic or group_topic_sender, and propagate `replyInThread` through text, card, and media outbound adapters so topic-scoped sessions no longer post at the group root. Fixes #74903. (#77151) Thanks @ai-hpc.

12+

- WhatsApp: pass routing context into voice-note transcript echo preflight so echoed transcripts can deliver to the originating chat. Fixes #79778. (#79788) Thanks @hclsys.

1213
1314

## 2026.5.9

1415
Original file line numberDiff line numberDiff line change

@@ -316,6 +316,48 @@ describe("createWebOnMessageHandler audio preflight", () => {

316316

);

317317

});

318318
319+

it("passes routing ctx fields to transcribeFirstAudio so echoTranscript can deliver (#79778)", async () => {

320+

let capturedCtx: unknown;

321+

transcribeFirstAudioMock.mockImplementation(async ({ ctx }: { ctx: unknown }) => {

322+

capturedCtx = ctx;

323+

return "transcribed voice note";

324+

});

325+

const handler = createWebOnMessageHandler({

326+

cfg: {

327+

channels: {

328+

whatsapp: {

329+

ackReaction: { enabled: true },

330+

},

331+

},

332+

} as never,

333+

verbose: false,

334+

connectionId: "conn-1",

335+

maxMediaBytes: 1024 * 1024,

336+

groupHistoryLimit: 20,

337+

groupHistories: new Map(),

338+

groupMemberNames: new Map(),

339+

echoTracker: makeEchoTracker() as never,

340+

backgroundTasks: new Set(),

341+

replyResolver: vi.fn() as never,

342+

replyLogger: {

343+

info: () => {},

344+

warn: () => {},

345+

debug: () => {},

346+

error: () => {},

347+

} as never,

348+

baseMentionConfig: {} as never,

349+

account: { authDir: "/tmp/auth", accountId: "default" },

350+

});

351+
352+

await handler(makeAudioMsg());

353+
354+

expect(capturedCtx).toMatchObject({

355+

Provider: "whatsapp",

356+

OriginatingTo: "+15550000002",

357+

From: "+15550000002",

358+

});

359+

});

360+
319361

it("does not transcribe group voice when policy gating rejects before mention", async () => {

320362

applyGroupGatingMock.mockResolvedValueOnce({ shouldProcess: false });

321363

const handler = createWebOnMessageHandler({

Original file line numberDiff line numberDiff line change

@@ -162,6 +162,13 @@ export function createWebOnMessageHandler(params: {

162162

ctx: {

163163

MediaPaths: [msg.mediaPath],

164164

MediaTypes: msg.mediaType ? [msg.mediaType] : undefined,

165+

From: msg.from,

166+

To: msg.to,

167+

Provider: "whatsapp",

168+

Surface: "whatsapp",

169+

OriginatingChannel: "whatsapp",

170+

OriginatingTo: conversationId,

171+

AccountId: route.accountId,

165172

},

166173

cfg: params.cfg,

167174

})) ?? null;

Original file line numberDiff line numberDiff line change

@@ -219,8 +219,15 @@ describe("processMessage audio preflight transcription", () => {

219219

expect(transcribeFirstAudioMock).toHaveBeenCalledWith(

220220

expect.objectContaining({

221221

ctx: expect.objectContaining({

222+

AccountId: "default",

223+

From: "+15550000002",

222224

MediaPaths: ["/tmp/voice.ogg"],

223225

MediaTypes: ["audio/ogg; codecs=opus"],

226+

OriginatingChannel: "whatsapp",

227+

OriginatingTo: "+15550000002",

228+

Provider: "whatsapp",

229+

Surface: "whatsapp",

230+

To: "+15550000001",

224231

}),

225232

}),

226233

);

Original file line numberDiff line numberDiff line change

@@ -243,6 +243,13 @@ export async function processMessage(params: {

243243

ctx: {

244244

MediaPaths: [params.msg.mediaPath],

245245

MediaTypes: params.msg.mediaType ? [params.msg.mediaType] : undefined,

246+

From: params.msg.from,

247+

To: params.msg.to,

248+

Provider: "whatsapp",

249+

Surface: "whatsapp",

250+

OriginatingChannel: "whatsapp",

251+

OriginatingTo: conversationId,

252+

AccountId: params.route.accountId,

246253

},

247254

cfg: params.cfg,

248255

});