From e98e36ddc61764ca1376292863d55eca43c3c702 Mon Sep 17 00:00:00 2001 From: Ismail Pelaseyed Date: Sun, 22 Mar 2026 22:25:29 +0100 Subject: [PATCH] add loading animation on streaming (#190) --- src/ui/app.tsx | 83 ++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 80 insertions(+), 3 deletions(-) diff --git a/src/ui/app.tsx b/src/ui/app.tsx index 12e4c1e..41d28bd 100644 --- a/src/ui/app.tsx +++ b/src/ui/app.tsx @@ -51,6 +51,12 @@ import { dark, type Theme } from "./theme"; const STAR_PALETTE = ["#777777", "#666666", "#4a4a4a", "#333333", "#222222"]; const LOADING_SPINNER_FRAMES = ["⬒", "⬔", "⬓", "⬕"]; +const PROMPT_LOADING_FRAMES = [ + { active: 0, forward: true }, + { active: 1, forward: true }, + { active: 2, forward: true }, + { active: 1, forward: false }, +] as const; type Star = { col: number; ch: string }; type Row = { stars: Star[]; grok?: number }; @@ -2252,9 +2258,7 @@ function PromptBox({ alignItems="flex-start" flexShrink={0} > - - {modeInfo.label} - +