[BUG] 4.9.3 - Main dashboard shows node is Connected but Node dashboard is always disconnected
Node dashboard is disconnected but packets are shown ??
Thanks for the report. Here's the root cause and the fix being prepared.
Root Cause
There are actually two interrelated issues:
1. False "Disconnected" on initial page load (the visible bug)
MeshCoreSourcePage stores the connection status in local React state (mcStatus), which starts as null. The header chip renders:
const connected = mcStatus?.connected ?? false; // false when null
This means every time the page loads, the header shows "Disconnected" for however long the snapshot fetch takes. The snapshot is fetched from /api/sources/:id/meshcore/snapshot, populates the real status, and the header then updates — but during the loading window, it always shows "Disconnected" even when the device is fully connected.
2. Dashboard staleness (why they disagree)
The dashboard sidebar polls /api/sources/:id/status every 15 seconds and caches the result. The MeshCore source page fetches a live snapshot at mount time. When the device is in a reconnect cycle (briefly connected = false between attempts), the page load catches the current disconnected state while the dashboard's cache still holds the previous "Connected" poll result. Contacts and packets remain visible because they're preserved in memory / returned from the database regardless of connection state.
Fix
PR incoming: Change the header chip to show "Connecting…" (not "Disconnected") while mcStatus is null, so the initial render doesn't mislead the user. Once the snapshot completes, the chip correctly shows "Connected" or "Disconnected" based on the actual device state.
The CSS class .status-indicator.connecting and the i18n key source.status_connecting ("Connecting") already exist in the codebase, so this is a small, safe change.
Generated by Claude Code
Can close issue , false alarm it was due to database corruption !!