fix(pi): preserve audio_as_voice tag

- Allow flag-only chunks so audio_as_voice propagates
- Keep reply item scan aware of empty audio tag blocks

Co-authored-by: Manuel Hettich <17690367+ManuelHettich@users.noreply.github.com>
This commit is contained in:
Jarvis
2026-01-08 14:21:50 +00:00
committed by Peter Steinberger
parent 9a7f050568
commit 8c7d1781bc

View File

@@ -1695,7 +1695,6 @@ export async function runEmbeddedPiAgent(params: {
const hasAudioAsVoiceTag = replyItems.some(
(item) => item.audioAsVoice,
);
const payloads = replyItems
.map((item) => ({
text: item.text?.trim() ? item.text.trim() : undefined,