diff --git a/botui/ui/suite/partials/chat.html b/botui/ui/suite/partials/chat.html index d63e7d4e..999059b4 100644 --- a/botui/ui/suite/partials/chat.html +++ b/botui/ui/suite/partials/chat.html @@ -757,16 +757,13 @@ function addMessage(sender, content, msgId) { var renderInterval = 200; // ms between renders function isTagBalanced(html) { + // The browser's DOM parser is very resilient with unclosed tags. + // Blocking render until tags are perfectly balanced causes the entire + // message to be hidden (showing loading dots) if the LLM wraps everything + // in an outer