Retry peer reconnect every 5s until back online
Release rolling / release (push) Has been cancelled

Replace exponential backoff and the 12-attempt cap with a fixed 5s
retry loop that keeps dialing after unexpected disconnects. Throttle
toasts so the UI is not spammed while the offline banner stays up.
This commit is contained in:
Raven Scott
2026-07-11 17:19:09 -04:00
parent 3fe050d7a6
commit 54c09b5eab
4 changed files with 51 additions and 11 deletions
+2 -1
View File
@@ -1526,9 +1526,10 @@ export function initOpsApp({ navigateToView, sendCommand }) {
}
})
manager.on('reconnecting', ({ attempt, delayMs }) => {
const secs = Math.max(1, Math.round((delayMs || 5000) / 1000))
setOfflineBanner(
true,
`Connection lost — reconnecting (attempt ${attempt}) in ${Math.round(delayMs / 1000)}s`
`Connection lost — retrying every ${secs}s (attempt ${attempt})`
)
})
manager.on('reconnected', () => {