From 8c7d1781bcdf89065a001115cac64e70cf8b1442 Mon Sep 17 00:00:00 2001 From: Jarvis Date: Thu, 8 Jan 2026 14:21:50 +0000 Subject: [PATCH] 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> --- src/agents/pi-embedded-runner.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/agents/pi-embedded-runner.ts b/src/agents/pi-embedded-runner.ts index 5ef32ea65..1860c9b6d 100644 --- a/src/agents/pi-embedded-runner.ts +++ b/src/agents/pi-embedded-runner.ts @@ -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,