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

推荐订阅源

Recent Announcements
Recent Announcements
Martin Fowler
Martin Fowler
MongoDB | Blog
MongoDB | Blog
Engineering at Meta
Engineering at Meta
Stack Overflow Blog
Stack Overflow Blog
Google DeepMind News
Google DeepMind News
Microsoft Security Blog
Microsoft Security Blog
aimingoo的专栏
aimingoo的专栏
I
InfoQ
B
Blog
WordPress大学
WordPress大学
Jina AI
Jina AI
小众软件
小众软件
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园_首页
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
酷 壳 – CoolShell
酷 壳 – CoolShell
阮一峰的网络日志
阮一峰的网络日志
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
G
Google Developers Blog
C
Check Point Blog
月光博客
月光博客
L
LangChain Blog
GbyAI
GbyAI

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: require explicit TTS intent · openclaw/openclaw@c026052
steipete · 2026-05-02 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

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

1919

### Fixes

2020
2121

- TTS/Telegram: keep trusted local audio generated by the TTS tool queued for voice-note delivery even when the run-level built-in tool list omits the raw `tts` name. Fixes #74752. Thanks @Loveworld3033 and @andyliu.

22+

- TTS: require explicit user or config audio intent for the agent speech tool so dashboard chats stay text unless audio is requested. Fixes #69777. Thanks @alexandre-leng.

2223

- Heartbeat: strip legacy `[TOOL_CALL]...[/TOOL_CALL]` and `[TOOL_RESULT]...[/TOOL_RESULT]` pseudo-call blocks from heartbeat replies before channel delivery. Fixes #54138. Thanks @Deniable9570.

2324

- macOS/Voice Wake: send wake-word and Push-to-Talk transcripts through the selected macOS session target instead of always falling back to main WebChat. Fixes #51040. Thanks @carl-jeffrolc.

2425

- Providers/xAI: give Grok `web_search` a 60s default timeout, harden malformed xAI Responses parsing, and return structured timeout errors instead of aborting the tool call. Fixes #58063 and #58733. Thanks @dnishimura, @marvcasasola-svg, and @Nanako0129.

Original file line numberDiff line numberDiff line change

@@ -48,6 +48,9 @@ audio attachments everywhere else, and PCM/Ulaw streams for telephony and Talk.

4848

<Note>

4949

Auto-TTS is **off** by default. When `messages.tts.provider` is unset,

5050

OpenClaw picks the first configured provider in registry auto-select order.

51+

The built-in `tts` agent tool is explicit-intent only: ordinary chat stays

52+

text unless the user asks for audio, uses `/tts`, or enables Auto-TTS/directive

53+

speech.

5154

</Note>

5255
5356

## Supported providers

Original file line numberDiff line numberDiff line change

@@ -168,6 +168,27 @@ describe("createOpenClawTools TTS config wiring", () => {

168168

}

169169

});

170170
171+

it("keeps direct TTS tool guidance explicit even when the tool is available", async () => {

172+

const { __testing, createOpenClawTools } = await import("./openclaw-tools.js");

173+

__testing.setDepsForTest({ config: {} });

174+
175+

try {

176+

const tool = createOpenClawTools({

177+

disableMessageTool: true,

178+

disablePluginTools: true,

179+

}).find((candidate) => candidate.name === "tts");

180+
181+

if (!tool) {

182+

throw new Error("missing tts tool");

183+

}

184+
185+

expect(tool.description).toContain("Use only for explicit audio intent");

186+

expect(tool.description).toContain("Never use for ordinary text replies");

187+

} finally {

188+

__testing.setDepsForTest();

189+

}

190+

});

191+
171192

it("passes the resolved session agent id into the tts tool", async () => {

172193

const injectedConfig = {

173194

agents: {

Original file line numberDiff line numberDiff line change

@@ -17,6 +17,14 @@ describe("createTtsTool", () => {

1717

expect(tool.description).toContain(SILENT_REPLY_TOKEN);

1818

});

1919
20+

it("requires explicit user or config audio intent in guidance text", () => {

21+

const tool = createTtsTool();

22+
23+

expect(tool.description).toContain("Use only for explicit audio intent");

24+

expect(tool.description).toContain("active TTS config");

25+

expect(tool.description).toContain("Never use for ordinary text replies");

26+

});

27+
2028

it("stores audio delivery in details.media and preserves the spoken text in content", async () => {

2129

textToSpeechSpy.mockResolvedValue({

2230

success: true,

Original file line numberDiff line numberDiff line change

@@ -64,7 +64,9 @@ export function createTtsTool(opts?: {

6464

label: "TTS",

6565

name: "tts",

6666

displaySummary: "Convert text to speech and return audio.",

67-

description: `Convert text to speech. Audio is delivered automatically from the tool result — reply with ${SILENT_REPLY_TOKEN} after a successful call to avoid duplicate messages.`,

67+

description:

68+

"Use only for explicit audio intent (audio, voice, speech, TTS) or active TTS config. Never use for ordinary text replies. " +

69+

`Audio is delivered automatically from the tool result — reply with ${SILENT_REPLY_TOKEN} after a successful call to avoid duplicate messages.`,

6870

parameters: TtsToolSchema,

6971

execute: async (_toolCallId, args) => {

7072

const params = args as Record<string, unknown>;

Original file line numberDiff line numberDiff line change

@@ -46,6 +46,17 @@ describe("shouldAttemptTtsPayload", () => {

4646

expect(shouldAttemptTtsPayload({ cfg: {} as OpenClawConfig })).toBe(false);

4747

});

4848
49+

it("does not infer automatic TTS from a dashboard text turn without opt-in state", () => {

50+

expect(

51+

shouldAttemptTtsPayload({

52+

cfg: {} as OpenClawConfig,

53+

agentId: "main",

54+

channelId: "webchat",

55+

accountId: "dashboard",

56+

}),

57+

).toBe(false);

58+

});

59+
4960

it("honors session auto state before prefs and config", () => {

5061

writeFileSync(prefsPath, JSON.stringify({ tts: { auto: "off" } }));

5162

const cfg = { messages: { tts: { auto: "off" } } } as OpenClawConfig;