feat(emulator): disconnection alerts, backoff auto-reconnect, loading indicators#67
Draft
feat(emulator): disconnection alerts, backoff auto-reconnect, loading indicators#67
Conversation
…, loading indicators Agent-Logs-Url: https://github.com/FirmwareDroid/FMD-WebClient/sessions/c1a63f0a-cd89-48fb-9126-0259ae437ae8 Co-authored-by: 7homasSutter <9306853+7homasSutter@users.noreply.github.com>
… add backoff comment Agent-Logs-Url: https://github.com/FirmwareDroid/FMD-WebClient/sessions/c1a63f0a-cd89-48fb-9126-0259ae437ae8 Co-authored-by: 7homasSutter <9306853+7homasSutter@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
7homasSutter
April 30, 2026 12:09
View session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The emulator view had no feedback when a streaming connection dropped unexpectedly, no loading visuals during metadata fetch or WebRTC connect, and no recovery mechanism for transient disconnects.
Changes
emulator-error.tsx— newDisconnectionBanner+DisconnectionInfotypeDisconnectionInfo: shared type carrying{ countdown, attempt, maxAttempts, failed }DisconnectionBanner: accessiblerole="alert"banner with live countdown, attempt/max display, "Reconnect Now" (skip countdown) and "Dismiss" (cancel reconnect) actionsemulator.css—.emu-spinner@keyframes emu-spin) usable inline in buttons and placeholderswebrtc-emulator-view.tsxhandleStateChangedistinguishes user-initiated vs unexpected disconnect viauserDisconnectRef; unexpected "disconnected" triggershandleUnexpectedDisconnectclearReconnectTimers()helper used consistentlyDisconnectionBannerdisplayed with live countdown; unmount effect cancels pending timersadb-emulator-view.tsxisLoadingMetaonclosehandler;disconnect()setsuserDisconnectRef.current = trueto suppress reconnect on intentional closeDisconnectionBannerrendered above the main emulator area