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

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
U
Unit 42
IT之家
IT之家
Y
Y Combinator Blog
T
Tailwind CSS Blog
B
Blog
大猫的无限游戏
大猫的无限游戏
博客园 - 叶小钗
Jina AI
Jina AI
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
I
InfoQ
J
Java Code Geeks
F
Fortinet All Blogs
T
The Blog of Author Tim Ferriss
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
H
Hackread – Cybersecurity News, Data Breaches, AI and More
人人都是产品经理
人人都是产品经理
腾讯CDC
Hugging Face - Blog
Hugging Face - Blog
GbyAI
GbyAI
博客园 - 司徒正美
The GitHub Blog
The GitHub Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
L
LangChain 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
test(channels): drop bluebubbles fixture assumptions · op...
vincentkoc · 2026-05-08 · via Recent Commits to openclaw:main

@@ -63,7 +63,7 @@ vi.mock("openclaw/plugin-sdk/channel-targets", () => ({

6363

normalizeChannelId: (channel: string | undefined) => channel?.trim().toLowerCase() ?? null,

6464

resolveChannelTtsVoiceDelivery: (channel: string | undefined) => {

6565

const normalized = channel?.trim().toLowerCase();

66-

if (normalized === "bluebubbles") {

66+

if (normalized === "voice-memo-chat") {

6767

return {

6868

synthesisTarget: "audio-file",

6969

audioFileFormats: ["mp3", "caf", "audio/mpeg", "audio/x-caf"],

@@ -116,14 +116,7 @@ const {

116116

textToSpeechTelephony,

117117

} = await import("./tts.js");

118118119-

const nativeVoiceNoteChannels = [

120-

"bluebubbles",

121-

"discord",

122-

"feishu",

123-

"matrix",

124-

"telegram",

125-

"whatsapp",

126-

] as const;

119+

const nativeVoiceNoteChannels = ["discord", "feishu", "matrix", "telegram", "whatsapp"] as const;

127120128121

function createMockSpeechProvider(

129122

id = "mock",

@@ -222,11 +215,11 @@ describe("speech-core native voice-note routing", () => {

222215

});

223216

});

224217225-

it("keeps BlueBubbles synthesis on mp3 audio-file output but delivers it as a voice memo", async () => {

218+

it("keeps compatible audio-file synthesis deliverable as a voice memo", async () => {

226219

await expectTtsPayloadResult({

227-

channel: "bluebubbles",

228-

prefsName: "openclaw-speech-core-tts-bluebubbles-mp3-test",

229-

text: "This BlueBubbles reply should be delivered as an iMessage voice memo.",

220+

channel: "voice-memo-chat",

221+

prefsName: "openclaw-speech-core-tts-voice-memo-mp3-test",

222+

text: "This reply should be delivered as a native voice memo.",

230223

target: "audio-file",

231224

audioAsVoice: true,

232225

mediaExtension: "mp3",

@@ -239,25 +232,25 @@ describe("speech-core native voice-note routing", () => {

239232

});

240233

});

241234242-

it("does not mark unsupported BlueBubbles audio-file output as a voice memo", async () => {

235+

it("does not mark unsupported audio-file output as a voice memo", async () => {

243236

await expectTtsPayloadResult({

244-

channel: "bluebubbles",

245-

prefsName: "openclaw-speech-core-tts-bluebubbles-ogg-test",

246-

text: "This BlueBubbles reply should stay a regular audio attachment.",

237+

channel: "voice-memo-chat",

238+

prefsName: "openclaw-speech-core-tts-voice-memo-ogg-test",

239+

text: "This reply should stay a regular audio attachment.",

247240

target: "audio-file",

248241

audioAsVoice: undefined,

249242

});

250243

});

251244252-

it("pre-transcodes BlueBubbles synthesized mp3 to opus-in-CAF when the host can satisfy preferAudioFileFormat", async () => {

245+

it("pre-transcodes synthesized mp3 to opus-in-CAF when the host can satisfy preferAudioFileFormat", async () => {

253246

transcodeAudioBufferMock.mockResolvedValueOnce({

254247

ok: true,

255248

buffer: Buffer.from("transcoded-caf"),

256249

});

257250

await expectTtsPayloadResult({

258-

channel: "bluebubbles",

259-

prefsName: "openclaw-speech-core-tts-bluebubbles-caf-transcode-test",

260-

text: "This BlueBubbles reply should be pre-transcoded to a native voice-memo CAF.",

251+

channel: "voice-memo-chat",

252+

prefsName: "openclaw-speech-core-tts-voice-memo-caf-transcode-test",

253+

text: "This reply should be pre-transcoded to a native voice-memo CAF.",

261254

target: "audio-file",

262255

audioAsVoice: true,

263256

mediaExtension: "caf",

@@ -279,15 +272,14 @@ describe("speech-core native voice-note routing", () => {

279272

reason: "transcoder-failed",

280273

detail: "exit-1",

281274

});

282-

// Even though the transcode failed, the original mp3 still satisfies

283-

// BlueBubbles' audioFileFormats list, so the channel still flips

284-

// audioAsVoice. The user gets the v2026.4.26 PCM-CAF behavior (a voice

285-

// memo bubble, possibly with bad duration) instead of a regression — and

286-

// the failure is logged via the call site in tts.ts so it isn't silent.

275+

// Even though the transcode failed, the original mp3 still satisfies the

276+

// channel audioFileFormats list, so the channel still flips audioAsVoice.

277+

// The user gets a voice memo bubble, possibly with bad duration, instead

278+

// of a regression. The failure is logged via the call site in tts.ts.

287279

await expectTtsPayloadResult({

288-

channel: "bluebubbles",

289-

prefsName: "openclaw-speech-core-tts-bluebubbles-caf-fallback-test",

290-

text: "This BlueBubbles reply should fall back to the original mp3.",

280+

channel: "voice-memo-chat",

281+

prefsName: "openclaw-speech-core-tts-voice-memo-caf-fallback-test",

282+

text: "This reply should fall back to the original mp3.",

291283

target: "audio-file",

292284

audioAsVoice: true,

293285

mediaExtension: "mp3",