fix: reduce WebSocket reconnection log noise in host agent

Addresses #866 - agents were logging 'WebSocket connection failed' warnings
even during normal reconnection scenarios (server restart, network blip, etc).

Changes:
- Normal close errors (1000, 1001, connection reset) now log at Debug level
- Only log Warning after 3+ consecutive failures
- Changed 'Connecting to Pulse' from Info to Debug to reduce noise
- Successful connections still log at Info level

The WebSocket is only used for AI command execution, not metrics, so
transient disconnections don't affect monitoring functionality.
This commit is contained in:
rcourtman 2025-12-22 14:11:23 +00:00
parent 59a4843f20
commit 28ac86c8ab
19 changed files with 292 additions and 206 deletions

3
.gitignore vendored
View file

@ -170,3 +170,6 @@ tmp_*.sh
scripts/agent/
docs/internal/
.agent/
# Pulse Pro landing page (private)
landing-page/