fix: use final heartbeat payload

This commit is contained in:
Peter Steinberger
2025-12-26 20:39:20 +00:00
parent 7f4c992dd7
commit e336b7f27e
4 changed files with 104 additions and 7 deletions

View File

@@ -21,6 +21,7 @@
### Fixes
- Heartbeat replies now strip repeated `HEARTBEAT_OK` tails to avoid accidental “OK OK” spam.
- Heartbeat delivery now uses the last non-empty payload, preventing tool preambles from swallowing the final reply.
- Heartbeat failure logs now include the error reason instead of `[object Object]`.
- Duration strings now accept `h` (hours) where durations are parsed (e.g., heartbeat intervals).
- WhatsApp inbound now normalizes more wrapper types so quoted reply bodies are extracted reliably.