Skip to content

Commit 40cc5db

Browse files
committed
undo craft
1 parent ba9d049 commit 40cc5db

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

web/src/app/craft/components/BuildMessageList.tsx

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,13 @@ import {
1616
} from "@/app/craft/types/displayTypes";
1717
import { isWorkingToolCall } from "@/app/craft/utils/streamItemHelpers";
1818

19-
function BlinkingBar() {
19+
/**
20+
* BlinkingDot - Pulsing gray circle for loading state
21+
* Matches the main chat UI's loading indicator
22+
*/
23+
function BlinkingDot() {
2024
return (
21-
<span
22-
className="flex-none bg-theme-primary-05 inline-block rounded-sm w-[2px] h-4 ml-2 mt-2"
23-
style={{ animation: "blink-bar 1s step-end infinite" }}
24-
>
25-
<style>{`
26-
@keyframes blink-bar {
27-
0%, 100% { opacity: 1; }
28-
50% { opacity: 0; }
29-
}
30-
`}</style>
31-
</span>
25+
<span className="animate-pulse flex-none bg-theme-primary-05 inline-block rounded-full h-3 w-3 ml-2 mt-2" />
3226
);
3327
}
3428

@@ -213,15 +207,15 @@ export default function BuildMessageList({
213207
<div className="flex-1 flex flex-col gap-3 min-w-0">
214208
{!hasStreamItems ? (
215209
// Loading state - no content yet, show blinking dot like main chat
216-
<BlinkingBar />
210+
<BlinkingDot />
217211
) : (
218212
<>
219213
{/* Render stream items in FIFO order */}
220214
{renderStreamItems(streamItems, true)}
221215

222216
{/* Streaming indicator when actively streaming text */}
223217
{isStreaming && hasStreamItems && !hasActiveTools && (
224-
<BlinkingBar />
218+
<BlinkingDot />
225219
)}
226220
</>
227221
)}

0 commit comments

Comments
 (0)