mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-10 02:25:56 +00:00
35429774b4
The supervisor's backend health monitor in scripts/hot-dev.sh only checked whether a `./pulse` process existed via pgrep. If the Go binary hung, panicked into recovery without exiting, or failed to bind :7655 while the process stayed alive, the monitor saw a healthy process count and never restarted, leaving the dev frontend talking to a dead listener. Hit that twice in one session. Add an HTTP probe of /api/health on the dev port. After two consecutive 5s polls where the process exists but /api/health is unreachable, kill the process and restart the same way the dead/duplicate branches do. Cut the poll interval from 10s to 5s so the worst-case unresponsive window is ~10s instead of ~30s. Bring deployment-installability into line by naming alive-but-unresponsive recovery as part of the dev-runtime orchestration boundary, and cover the new branch with static-source assertions in scripts/tests/test-hot-dev-bg.sh.