#119·Crucix

SSE live updates never connect when server injects inline data, dashboard stays frozen on bundled date

Author: defaultuser9243Created May 30, 2026Updated May 30, 2026
Labelsbug

Summary

When the server injects data into let D = {...} in jarvis.html, hasInlineData is always true. The DOMContentLoaded handler takes the else if (hasInlineData) branch which calls init() but never calls connectSSE(). The SSE connection is never opened, so the dashboard stays frozen on whatever date was in the bundled runs/latest.json — even while the server sweeps successfully every 5 minutes (I changed it from 15 to 5).

Environment

  • OS: Windows 11
  • Install method: local
  • Node version: 22
  • LLM provider: OpenRouter

Steps to Reproduce

  1. Clone repo fresh
  2. Run node server.mjs
  3. Open localhost:3117
  4. Wait — dashboard shows bundled April 3 2026 date indefinitely
  5. Check Network tab — no /events SSE connection ever opens

Fix

In the DOMContentLoaded handler at the bottom of jarvis.html, add connectSSE() to the else if (hasInlineData) branch:

} else if (hasInlineData) { init(); if (canProbeApi) connectSSE(); // ← this line is missing }