Import ClientFlow production v4928.1.5.132.4

This commit is contained in:
plx
2026-07-29 13:11:01 +00:00
parent 6445044ac6
commit 261d342057
405 changed files with 48373 additions and 1401 deletions

View File

@@ -0,0 +1,21 @@
# v4928.1.5.21 — Chatwoot message formatting hotfix
## Fix
- Preserve operator-written line breaks when sending public messages to Chatwoot.
- Chatwoot renders message content as Markdown-like text, where single newlines can be collapsed into spaces.
- ClientFlow now formats outgoing Chatwoot messages with Markdown hard breaks before posting, so price lists and manually separated lines remain readable after sending.
## Scope
- Applies to public Chatwoot sends through:
- `send_public_message`
- `send_public_message_with_attachments`
- Does not change the editable draft shown to the operator.
- Does not alter the saved communication body in ClientFlow; the formatting is applied at the Chatwoot delivery boundary.
## Validation
- `python -m compileall -q app`
- `python -m pytest -q`
- Added tests for price-list line break preservation.