On May 14, 2025, a change was deployed to the chat widget at 10:56 AM EDT to improve the logout experience. This update aimed to fix an issue where the widget would incorrectly return to a "New Chat" screen after a user logged out (specifically, calling `Kustomer.logout()`) from a different page, such as a knowledge base article.
However, this change inadvertently caused the chat widget to lose access to essential functions needed for sending and receiving messages after a logout and subsequent new chat initiation. This resulted in messages disappearing and the chat window becoming unresponsive.
The deployed change, while intended to improve the logout flow, inadvertently caused the application to lose references to critical business logic functions stored within the application state. The application state was incorrectly assumed to only hold data, not these essential functions, leading to their loss during the state restoration process after logout.
May 14, 2025
May 15, 2025
Enhanced Testing - Automated regression tests will be added to prevent future regressions related to the application state. QA testing procedures will be updated to always include testing the ability to start a new conversation after logout.
Improved Documentation - Documentation regarding the expected behavior of the logout function will be enhanced.