fix(telegram): deliver TTS as additive final audio#872
Draft
artemgetmann wants to merge 4 commits into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Review Fast Path
/tts onfinal replies now deliver durable final text first, then a separate audio/voice message below it.1952d587af.progress-plus-ttslive scenario still needs a reliable prompt/harness trigger for a separate progress event; TTS shape passed, progress emission did not.Why This Matters
Scope Boundary
media_typeand verify separate audio after final text.Verification
pnpm test -- src/commands/telegram.test.ts src/cli/telegram-cli.test.ts src/auto-reply/reply/dispatch-from-config.test.ts src/auto-reply/reply/dispatch-acp-delivery.test.ts src/auto-reply/reply/dispatch-acp.test.ts src/tts/tts.test.tspass: 136 tests.pnpm test -- extensions/telegram/src/progress-controller.test.ts extensions/telegram/src/bot-message-dispatch.api-sequence.test.ts extensions/telegram/src/bot-message-dispatch.high-route-api-sequence.test.ts src/agents/pi-embedded-subscribe.reply-tags.test.ts src/agents/pi-embedded-subscribe.handlers.tools.test.ts src/auto-reply/reply/agent-runner-payloads.test.ts src/auto-reply/reply/dispatch-from-config.test.ts src/auto-reply/reply/dispatch-acp-delivery.test.ts src/auto-reply/reply/dispatch-acp.test.ts src/tts/tts.test.ts src/commands/telegram.test.ts src/cli/telegram-cli.test.tspass: 187 tests.pnpm lintpass.pnpm buildpass.git diff --checkpass.Live Telegram Proof
branch=codex/telegram-tts-additive-20260607runtime_worktree=/Users/user/Programming_Projects/openclaw/.worktrees/telegram-tts-additive-20260607runtime_commit=1952d587afbe07e1569064ab80fc9a697089f912current_lane_bot=@Artem_jarvis_exec_botpnpm openclaw:local telegram smoke baseline --json.artifacts/telegram-smoke/20260607T110911Z-baseline-771cd206.jsonBaseline ping received and confirmed.pnpm openclaw:local telegram scenario tts-final-caption --json.artifacts/telegram-smoke/20260607T111615Z-tts-final-caption-d23788d0.json5236552366empty_voice_only_final_detected=falsemergeReadiness=sufficient/tts offsent after live checks🔇 TTS disabled.Known Gap
progress-plus-ttson this isolated lane produced final text plus separate audio, but the model placed the progress note in the final text instead of emitting a separate progress event..artifacts/telegram-smoke/20260607T110958Z-progress-plus-tts-4b1019f4.json.artifacts/telegram-smoke/20260607T111043Z-progress-long-task-25862d4a.jsonAI Assistance