From 23a54fda02b1344c23bef52173ff31f48ba5c85e Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 2 Feb 2026 10:26:02 +0000 Subject: [PATCH] fix: use instant scroll instead of disabling scroll on initial load The previous fix returned `false` which disabled scrolling entirely, causing incorrect scroll position. Changed to return "auto" which scrolls instantly (no animation) while still positioning correctly. https://claude.ai/code/session_0174r1Ddh5e2RuhHf2ZrFiNc --- src/components/ChatViewer.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/ChatViewer.tsx b/src/components/ChatViewer.tsx index 2b55d12..8857dcd 100644 --- a/src/components/ChatViewer.tsx +++ b/src/components/ChatViewer.tsx @@ -1085,10 +1085,10 @@ export function ChatViewer({ data={messagesWithMarkers} initialTopMostItemIndex={messagesWithMarkers.length - 1} followOutput={() => { - // Skip smooth scroll on initial load to avoid slow scroll animation + // Use instant scroll on initial load to avoid slow scroll animation if (!isInitialScrollDone.current) { isInitialScrollDone.current = true; - return false; + return "auto"; // Instant scroll (no animation) } return "smooth"; }}