From a6ab279cf66fe4a8c90408f94faf23e6cfdb0eb7 Mon Sep 17 00:00:00 2001 From: Oleksii Dolhov Date: Mon, 27 Apr 2026 12:51:27 +0300 Subject: [PATCH] fix(chat): wrap long unbroken strings inside chat bubble (#457) Long URLs, base64 blobs, and inline code in chat responses pushed the agent detail page horizontally because text containers did not break unbreakable strings and `
` blocks grew to intrinsic width.

Add Tailwind classes on all three ChatBubble variants:
- `[overflow-wrap:anywhere]` on text containers (wraps long strings)
- `min-w-0` on bubble wrappers (so percent max-width clamps correctly)
- `prose-pre:max-w-full prose-pre:overflow-x-auto prose-pre:whitespace-pre`
  (pre blocks scroll inside the bubble instead of pushing layout)
- `prose-code:break-all prose-a:break-all`
  (inline code and links break at character boundaries)

Co-Authored-By: Claude Opus 4.7 (1M context) 
---
 src/frontend/src/components/chat/ChatBubble.vue | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/frontend/src/components/chat/ChatBubble.vue b/src/frontend/src/components/chat/ChatBubble.vue
index e9946ebd3..45758f3e3 100644
--- a/src/frontend/src/components/chat/ChatBubble.vue
+++ b/src/frontend/src/components/chat/ChatBubble.vue
@@ -2,21 +2,21 @@
   
   
-
+
Voice
-

{{ content }}

+

{{ content }}

{{ formattedTime }}

@@ -64,7 +64,7 @@
-
+
Voice