botui/ui/suite/partials
Rodrigo Rodriguez (Pragmatismo) 7c1deca8ae fix: resolve infinite WebSocket reconnection loop
The ui_server proxies WebSocket connections. It was accepting the client's WebSocket connection (ws.onopen triggered on the client), but if it couldn't connect to the backend (or if the backend disconnected), it would drop the client connection right away (ws.onclose triggered).

The issue was that reconnectAttempts was being reset to 0 inside the ws.onopen handler. Because the connection was briefly succeeding before failing, the reconnectAttempts counter was resetting to 0 on every attempt, completely circumventing the exponential backoff mechanism and causing a tight reconnection loop.

Modified the WebSocket logic across all relevant UI components to delay resetting reconnectAttempts = 0. Instead of resetting immediately upon the TCP socket opening, it now safely waits until a valid JSON payload {"type": "connected"} is successfully received from the backend.
2026-02-25 10:15:47 -03:00
..
apps_menu.html - Spliting from botserver. 2025-12-03 18:42:22 -03:00
chat.html fix: resolve infinite WebSocket reconnection loop 2026-02-25 10:15:47 -03:00
contexts.html - Spliting from botserver. 2025-12-03 18:42:22 -03:00
desktop-inner.html fix: resolve infinite WebSocket reconnection loop 2026-02-25 10:15:47 -03:00
editor-inner.html feat(ui): implement Window Manager desktop shell based on BUILD V3 design 2026-02-24 19:02:48 -03:00
explorer-inner.html feat(ui): implement Window Manager desktop shell based on BUILD V3 design 2026-02-24 19:02:48 -03:00
language-selector.html feat(auth): Add user profile loading and auth state management 2026-01-06 22:57:00 -03:00
mail.html feat(ui): implement Window Manager desktop shell based on BUILD V3 design 2026-02-24 19:02:48 -03:00
message.html - Spliting from botserver. 2025-12-03 18:42:22 -03:00
messages.html - Spliting from botserver. 2025-12-03 18:42:22 -03:00
navigation_menu.html Add logged-out navigation menu component 2026-02-04 00:03:10 -03:00
notification.html - Spliting from botserver. 2025-12-03 18:42:22 -03:00
sessions.html - Spliting from botserver. 2025-12-03 18:42:22 -03:00
settings.html feat(ui): implement Window Manager desktop shell based on BUILD V3 design 2026-02-24 19:02:48 -03:00
suggestions.html - Spliting from botserver. 2025-12-03 18:42:22 -03:00
tasks.html feat(ui): implement Window Manager desktop shell based on BUILD V3 design 2026-02-24 19:02:48 -03:00
user_menu.html - Spliting from botserver. 2025-12-03 18:42:22 -03:00
vibe.html fix: resolve infinite WebSocket reconnection loop 2026-02-25 10:15:47 -03:00