Hi all,
The JavaScript messenger SDK is failing to maintain custom CSS overrides during the transition from a pre-chat state to an active conversation. Specifically, the deployment snippet applies a specific border-radius and brand-color to the widget container, but these properties are stripped the moment the conversation lifecycle event triggers the handoff to a live agent.
This behavior is inconsistent with several community posts regarding widget persistence. The style is active during the initial load but disappears upon agent connection. We’re on NICE CXone and the issue is affecting all browser sessions in our staging environment.
The console shows a 400 Bad Request when the SDK attempts to refresh the UI state:
{
"error": "InvalidRequest",
"message": "The requested CSS property override is not permitted for the current session state.",
"code": 400,
"timestamp": "2023-10-27T14:22:01Z"
}
Attempts to force the styles via a MutationObserver in the deployment snippet didn’t work as the SDK keeps overwriting the DOM elements. The customization API calls for the theme are returning 200 OK, but the actual render is ignoring the payload once the agent joins.