mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-28 01:21:43 +00:00
The gateway health check broke out of the polling loop as soon as the bridge HTTP server returned 200, regardless of the actual WhatsApp connection status. This meant 'Bridge ready (status: disconnected)' was printed and the gateway moved on, even when WhatsApp never connected. Additionally, bridge stdout/stderr were piped to DEVNULL, so if the session had expired and the bridge needed a QR re-scan, the user had no way to see that. The 'Scan QR code if prompted (check bridge output)' message was misleading since there was no output to check. Changes: - Health check now has two phases: wait for HTTP (15s), then wait for status:connected (15s more). Total 30s budget. - Bridge output routes to ~/.hermes/whatsapp/bridge.log instead of DEVNULL — QR codes, errors, reconnection msgs are preserved. - Clear warnings with actionable steps if connection fails after 30s (check bridge.log, re-pair with hermes whatsapp). - Removed misleading 'Scan QR code' message. - Log file handle properly cleaned up on disconnect. Fixes #365 |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| base.py | ||
| discord.py | ||
| homeassistant.py | ||
| slack.py | ||
| telegram.py | ||
| whatsapp.py | ||