Skip to content

Fix #18: The connection interrupted sign appears intermittently when connection is gone continuously#19

Merged
max-tet merged 1 commit into
mainfrom
clayde/issue-18-fix-connection-warning
Apr 19, 2026
Merged

Fix #18: The connection interrupted sign appears intermittently when connection is gone continuously#19
max-tet merged 1 commit into
mainfrom
clayde/issue-18-fix-connection-warning

Conversation

@ClaydeCode
Copy link
Copy Markdown
Contributor

Closes #18

Fixed the intermittent connection warning in Navbar.vue by replacing the rolling 5-second threshold (which caused flickering during reconnect attempts) with a warningEnabled flag initialized to false and set to true after a 5-second timeout on created(). The showConnectionWarning computed property now returns this.warningEnabled && disconnectedSince !== null, so the warning is suppressed only during the initial 5-second page load window, then shows immediately and stays visible for any disconnect thereafter.

Instead of using a rolling 5-second threshold from disconnectedSince
(which caused the warning to flicker during repeated reconnect attempts),
add a warningEnabled flag that becomes true 5 seconds after mount.
After that, any disconnect shows the warning immediately and continuously.
@ClaydeCode ClaydeCode requested a review from max-tet April 19, 2026 11:41
@max-tet max-tet merged commit bd70d98 into main Apr 19, 2026
2 checks passed
@max-tet max-tet deleted the clayde/issue-18-fix-connection-warning branch April 19, 2026 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The connection interrupted sign appears intermittently when connection is gone continuously

2 participants