diff --git a/frontend/src/app/chat/components/assistant-message.tsx b/frontend/src/app/chat/components/assistant-message.tsx
index 9b109813..0f24dd8c 100644
--- a/frontend/src/app/chat/components/assistant-message.tsx
+++ b/frontend/src/app/chat/components/assistant-message.tsx
@@ -83,8 +83,10 @@ export function AssistantMessage({
)}
chatMessage={
isStreaming
- ? content +
- ' '
+ ? (content.trim()
+ ? content +
+ ' '
+ : 'Thinking')
: content
}
/>
diff --git a/frontend/src/app/globals.css b/frontend/src/app/globals.css
index 7ffab80e..4765ef8c 100644
--- a/frontend/src/app/globals.css
+++ b/frontend/src/app/globals.css
@@ -365,4 +365,22 @@
width: 100%;
height: 30px;
}
+
+ .thinking-dots::after {
+ content: ".";
+ animation: thinking-dots 1.4s steps(3, end) infinite;
+ }
+
+ @keyframes thinking-dots {
+ 0% {
+ content: ".";
+ }
+ 33.33% {
+ content: "..";
+ }
+ 66.66%,
+ 100% {
+ content: "...";
+ }
+ }
}