Skip to content

fix(dashboard): restart live server when its code goes stale#142

Merged
mvalancy merged 1 commit into
devfrom
fix/dashboard-loop-restart-on-stale-code
Jun 19, 2026
Merged

fix(dashboard): restart live server when its code goes stale#142
mvalancy merged 1 commit into
devfrom
fix/dashboard-loop-restart-on-stale-code

Conversation

@mvalancy

Copy link
Copy Markdown
Member

The dashboard server serves the code it booted with. The autonomous loop only restarted it when down, so dashboard fixes (e.g. the -1 sentinel filter merged at 13:46) never reached the 00:39-old live server — it kept emitting 12 stale -1 sentinel points the code already filters. Adds restart_if_stale: find the port's listener, compare start time vs newest dashboard source mtime, restart when newer. Down→start net recovers on misfire. node --test (35) green; verified live (sentinels 12→0 after restart).

🤖 Generated with Claude Code

…he running process

The dashboard server keeps serving the code it booted with, so dashboard
self-improvements (e.g. the -1 not-measured sentinel filter) never reach the
live charts until it restarts. The loop only restarted on a dead server, so a
14h-old process kept emitting 12 stale -1 sentinel points the code already
filters. Add restart_if_stale: find the listener bound to the port, compare its
start time to the newest dashboard source mtime, and restart when newer. The
existing down→start net recovers if the restart misfires.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mvalancy mvalancy merged commit 52de138 into dev Jun 19, 2026
9 of 11 checks passed
@mvalancy mvalancy deleted the fix/dashboard-loop-restart-on-stale-code branch June 19, 2026 21:17
@github-actions

Copy link
Copy Markdown

🧪 Comprehensive Test Suite

  • Unit suites (Node 18.x & 20.x) — core, web, server, mcp-server: ❌ failure
  • Installer & deploy config: ✅ passed

Full-stack smoke gate runs in the CI workflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant