Fix savings chat autoscroll

This commit is contained in:
Matthias
2026-06-16 11:02:00 +02:00
parent 9f17d4d1e1
commit 15bf5d2036
4 changed files with 62 additions and 1 deletions

View File

@@ -12,6 +12,7 @@ import {
AgentPromptInput,
type AgentChatMessage,
} from "@/components/chat/AgentChat";
import { scrollConversationToBottom } from "@/components/chat/agentChatModel";
import { ChatHistory, type ChatHistoryItem } from "@/components/chat/ChatHistory";
import { toast } from "sonner";
@@ -278,7 +279,7 @@ export function SavingsChatPage() {
};
useEffect(() => {
listRef.current?.lastElementChild?.scrollIntoView({ behavior: "smooth" });
scrollConversationToBottom(listRef.current);
}, [displayMessages.length, activeSessionId]);
useEffect(() => {