fix(web): ignore stale aggregate health snapshots #53
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "codex/fix-initial-stale-health-summary"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Prevent warm-start tile snapshots from restoring derived aggregate health summaries over the fresh dashboard shell.
Why
A browser can keep an old
system-statusorruntime-health-summarysnapshot from a transient monitoring failure. On the next page load, that stale aggregate could briefly show many services down until tile hydration corrected it.Changes
system-statusandruntime-health-summary.Testing
bun --cwd apps/web test src/lib/client/dashboard-refresh.test.tsfailed before the fix and passed after.bun --cwd apps/web test src/App.test.tsxfailed before the App restore guard and passed after.bun install --frozen-lockfilebun run checkbun run testbun run buildNotes
This does not disable last-known data globally; it only avoids replaying derived aggregate summaries that can be misleading at startup.