fix: skip whatsapp heartbeat when provider inactive

This commit is contained in:
Peter Steinberger
2025-12-27 19:34:01 +00:00
parent a61c27c4d0
commit 3a485a14a4
3 changed files with 104 additions and 1 deletions

View File

@@ -27,6 +27,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.
- Heartbeats now skip WhatsApp delivery when the web provider is inactive or unlinked (instead of logging “no active gateway listener”).
- 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.