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:
JarvisandManuel Hettich authored and Peter Steinberger committed 2026-01-10 01:43:51 +01:00
1 parent 9a7f050568
commit 8c7d1781bc
1 file changed
-1
-1
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,