Commit Graph

3 Commits

Author SHA1 Message Date
zerone0x
861be9c936 fix(whatsapp): normalize literal \n escape sequences in outbound messages
Some LLM providers output literal \n characters (backslash-n) instead of actual
newlines. This causes WhatsApp to display the escape sequences as text rather
than rendering line breaks.

Add normalizeOutboundTextNewlines() to convert literal \n, \r\n, and \r escape
sequences to actual newlines before sending messages via the WhatsApp adapter.

Fixes #3082

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-28 14:09:59 +08:00
Peter Steinberger
bc49c20434 fix: finalize inbound contexts 2026-01-17 05:06:39 +00:00
Peter Steinberger
388b2bce01 refactor: add inbound context helpers 2026-01-17 04:05:34 +00:00