-
Notifications
You must be signed in to change notification settings - Fork 151
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description
When the admin user logs out while a web widget linked to their account is running, the websocket connection between the widget and API closes, showing the Connection Lost UI. Pressing the refresh button attempts to reconnect but the operation gets stuck.
Additionally, after refreshing the page, localStorage still holds the admin account's subscriber profile. As a result, the app bypasses the "submit firstname/lastname" form and creates a new user for the admin account, even though the admin had logged out.
Reproduction steps
1. Log in with an admin account.
2. Ensure a web widget is running and linked to the admin account.
3. Log out from the admin account.
4. Observe that the widget's websocket disconnects and the Connection Lost UI appears.
5. Click the refresh button in the widget UI: note that it gets stuck attempting to reconnect.
6. Refresh the browser page.
7. Observe that localStorage still retains the admin subscriber profile.
8. The app bypasses the submit firstname/lastname form and creates a new user for the admin account despite the logout.
Screencast.from.2025-08-08.18-51-08.webm
Expected behaviour
- Frontend App : Clear Local storage when the Admin UI users logout
- Chat Widget : Improve the handling lost connection scenario. The refresh button should successfully re-establish the WebSocket connection for the subscriber.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working