From 17c0b512fcf66b90275294c0682abf8207c1c5d0 Mon Sep 17 00:00:00 2001 From: Charles Packer Date: Mon, 2 Feb 2026 17:24:46 -0800 Subject: [PATCH] fix(cli): reset logo to flat frame when loading completes (#786) Co-authored-by: Letta --- src/cli/components/AnimatedLogo.tsx | 5 ++++- src/cli/components/WelcomeScreen.tsx | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/cli/components/AnimatedLogo.tsx b/src/cli/components/AnimatedLogo.tsx index 7531e1c..92072a3 100644 --- a/src/cli/components/AnimatedLogo.tsx +++ b/src/cli/components/AnimatedLogo.tsx @@ -124,13 +124,16 @@ function getSnapshot(): number { interface AnimatedLogoProps { color?: string; + /** When false, show static frame 0 (flat logo). Defaults to true. */ + animate?: boolean; } export function AnimatedLogo({ color = colors.welcome.accent, + animate = true, }: AnimatedLogoProps) { const tick = useSyncExternalStore(subscribe, getSnapshot); - const frame = tick % logoFrames.length; + const frame = animate ? tick % logoFrames.length : 0; const logoLines = logoFrames[frame]?.split("\n") ?? []; diff --git a/src/cli/components/WelcomeScreen.tsx b/src/cli/components/WelcomeScreen.tsx index c7185dc..9fbc0ee 100644 --- a/src/cli/components/WelcomeScreen.tsx +++ b/src/cli/components/WelcomeScreen.tsx @@ -117,7 +117,10 @@ export function WelcomeScreen({ {/* Left column: Logo */} - + {/* Right column: Text info */}