botui/ui/suite
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
..
about Update PROMPT.md and UI changes 2026-01-22 20:24:16 -03:00
admin Update UI components and add drive-sentient.js 2026-01-16 11:29:47 -03:00
analytics fix(slides): remove duplicate cacheElements/bindEvents functions causing null error 2026-01-12 14:05:06 -03:00
assets/icons fix(i18n): fix DOM timing issue in i18n.js 2026-01-10 10:54:05 -03:00
attendant fix: resolve infinite WebSocket reconnection loop 2026-02-25 10:15:47 -03:00
auth fix: Update theme selector to change chat colors and add login page logo 2026-02-15 21:33:18 +00:00
billing fix(slides): remove duplicate cacheElements/bindEvents functions causing null error 2026-01-12 14:05:06 -03:00
browser feat(ui): implement Window Manager desktop shell based on BUILD V3 design 2026-02-24 19:02:48 -03:00
calendar fix(ui): Use absolute paths for CSS/JS assets in suite apps to resolve loading errors 2026-01-28 16:26:09 -03:00
canvas Update UI components and add drive-sentient.js 2026-01-16 11:29:47 -03:00
chat fix: resolve infinite WebSocket reconnection loop 2026-02-25 10:15:47 -03:00
crm fix(slides): remove duplicate cacheElements/bindEvents functions causing null error 2026-01-12 14:05:06 -03:00
css feat(ui): implement Window Manager desktop shell based on BUILD V3 design 2026-02-24 19:02:48 -03:00
dashboards Fix UI button handlers and add missing JS modules 2026-01-13 14:49:22 -03:00
docs refactor(suite): clean up base layout and modularize app scripts 2026-01-25 13:33:03 -03:00
drive feat(ui): implement Window Manager desktop shell based on BUILD V3 design 2026-02-24 19:02:48 -03:00
goals Fix UI button handlers and add missing JS modules 2026-01-13 14:49:22 -03:00
js fix: resolve infinite WebSocket reconnection loop 2026-02-25 10:15:47 -03:00
learn Update UI components and add drive-sentient.js 2026-01-16 11:29:47 -03:00
mail fix(ui): Use absolute paths for CSS/JS assets in suite apps to resolve loading errors 2026-01-28 16:26:09 -03:00
meet fix(slides): remove duplicate cacheElements/bindEvents functions causing null error 2026-01-12 14:05:06 -03:00
monitoring fix(slides): remove duplicate cacheElements/bindEvents functions causing null error 2026-01-12 14:05:06 -03:00
paper fix(slides): remove duplicate cacheElements/bindEvents functions causing null error 2026-01-12 14:05:06 -03:00
partials fix: resolve infinite WebSocket reconnection loop 2026-02-25 10:15:47 -03:00
people fix(slides): remove duplicate cacheElements/bindEvents functions causing null error 2026-01-12 14:05:06 -03:00
player refactor(ui): extract inline CSS/JS to external files 2026-01-10 20:12:48 -03:00
products fix(slides): remove duplicate cacheElements/bindEvents functions causing null error 2026-01-12 14:05:06 -03:00
project Redesign home page with beautiful layout, add People/Contacts, rename Tools to Compliance 2026-01-09 20:56:59 -03:00
public Fix theme loading: add light.css and make default theme load it 2026-01-11 20:58:11 -03:00
research fix(slides): remove duplicate cacheElements/bindEvents functions causing null error 2026-01-12 14:05:06 -03:00
settings Update PROMPT.md and UI changes 2026-01-22 20:24:16 -03:00
sheet refactor(suite): clean up base layout and modularize app scripts 2026-01-25 13:33:03 -03:00
slides Fix UI button handlers and add missing JS modules 2026-01-13 14:49:22 -03:00
social fix(slides): remove duplicate cacheElements/bindEvents functions causing null error 2026-01-12 14:05:06 -03:00
sources fix(slides): remove duplicate cacheElements/bindEvents functions causing null error 2026-01-12 14:05:06 -03:00
tasks fix: correct desktop icon app paths for suite apps 2026-02-24 20:32:46 -03:00
terminal feat(ui): implement Window Manager desktop shell based on BUILD V3 design 2026-02-24 19:02:48 -03:00
tickets fix(slides): remove duplicate cacheElements/bindEvents functions causing null error 2026-01-12 14:05:06 -03:00
tools Update UI components and add drive-sentient.js 2026-01-16 11:29:47 -03:00
video refactor(ui): extract inline CSS/JS to external files 2026-01-10 20:12:48 -03:00
webfonts feat(ui): implement Window Manager desktop shell based on BUILD V3 design 2026-02-24 19:02:48 -03:00
workspace fix(slides): remove duplicate cacheElements/bindEvents functions causing null error 2026-01-12 14:05:06 -03:00
base-layout.css Rename tasks-sentient to tasks (make sentient theme default) 2025-12-15 16:33:23 -03:00
default.gbui fix(ui): remove theme selector from suite layout and projector 2026-02-18 20:52:11 +00:00
designer.css refactor: Extract inline CSS/JS to separate files for monitoring module 2025-12-07 09:56:27 -03:00
designer.html fix(slides): remove duplicate cacheElements/bindEvents functions causing null error 2026-01-12 14:05:06 -03:00
designer.js fix(i18n): fix DOM timing issue in i18n.js 2026-01-10 10:54:05 -03:00
desktop.html fix: resolve infinite WebSocket reconnection loop 2026-02-25 10:15:47 -03:00
editor.css refactor: Extract inline CSS/JS to separate files for monitoring module 2025-12-07 09:56:27 -03:00
editor.html fix(i18n): fix DOM timing issue in i18n.js 2026-01-10 10:54:05 -03:00
editor.js fix(i18n): fix DOM timing issue in i18n.js 2026-01-10 10:54:05 -03:00