fix: avoid WhatsApp silent turns with final-only delivery (#24962) (thanks @SidQin-cyber)

This commit is contained in:
Peter Steinberger
2026-02-24 03:46:38 +00:00
parent 3d22af692c
commit b5881d9ef4
3 changed files with 78 additions and 5 deletions

View File

@@ -416,10 +416,9 @@ export async function processMessage(params: {
onReplyStart: params.msg.sendComposing,
},
replyOptions: {
disableBlockStreaming:
typeof params.cfg.channels?.whatsapp?.blockStreaming === "boolean"
? !params.cfg.channels.whatsapp.blockStreaming
: undefined,
// WhatsApp delivery intentionally suppresses non-final payloads.
// Keep block streaming disabled so final replies are still produced.
disableBlockStreaming: true,
onModelSelected,
},
});