From 8973e97464295106d802e99cd4a1b16aec63acfa Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 11 Mar 2026 15:18:52 -0700 Subject: [PATCH] fix(whatsapp): warn when streaming is set in WhatsApp config (#558) Co-authored-by: letta-code <248085862+letta-code@users.noreply.github.com> Co-authored-by: Cameron --- src/channels/factory.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/channels/factory.ts b/src/channels/factory.ts index 7d6e5df..6a10abc 100644 --- a/src/channels/factory.ts +++ b/src/channels/factory.ts @@ -55,6 +55,10 @@ const SHARED_CHANNEL_BUILDERS: SharedChannelBuilder[] = [ { isEnabled: (agentConfig) => !!agentConfig.channels.whatsapp?.enabled, build: (agentConfig, options) => { + const whatsappRaw = agentConfig.channels.whatsapp! as Record; + if (whatsappRaw.streaming) { + log.warn('WhatsApp does not support streaming (message edits not available). Streaming setting will be ignored for WhatsApp.'); + } const selfChatMode = agentConfig.channels.whatsapp!.selfChat ?? true; if (!selfChatMode) { log.warn('WARNING: selfChatMode is OFF - bot will respond to ALL incoming messages!');