diff --git a/frontend/src/features/chat/components/ChatWindow.js b/frontend/src/features/chat/components/ChatWindow.js index 65268f3..b33c3a9 100644 --- a/frontend/src/features/chat/components/ChatWindow.js +++ b/frontend/src/features/chat/components/ChatWindow.js @@ -213,26 +213,28 @@ )} - {!message.isUser && message.status && ( -
-
-
- - {message.status} - + {!message.isUser && message.status && (() => { + const isTerminal = typeof message.status === 'string' && (message.status.toLowerCase().includes("complete") || message.status.toLowerCase().includes("finished")); + return ( +
+
+
+ + {message.status} + +
-
- )} + ); + })()} {(message.isPureAnswer || !message.isUser) && (