diff --git a/src/interface/web/app/page.tsx b/src/interface/web/app/page.tsx index 158b6fb7..45b91ad2 100644 --- a/src/interface/web/app/page.tsx +++ b/src/interface/web/app/page.tsx @@ -23,6 +23,7 @@ import { AgentData } from "@/app/agents/page"; import { createNewConversation } from "./common/chatFunctions"; import { useIsMobileWidth } from "./common/utils"; import { useSearchParams } from "next/navigation"; +import { ScrollArea, ScrollBar } from "@/components/ui/scroll-area"; interface ChatBodyDataProps { chatOptionsData: ChatOptions | null; @@ -112,7 +113,7 @@ function ChatBodyData(props: ChatBodyDataProps) { const shuffledAgents = agentsData ? [...agentsData].sort(() => 0.5 - Math.random()) : []; const agents = agentsData ? [agentsData[0]] : []; // Always add the first/default agent. - shuffledAgents.slice(0, nSlice - 1).forEach((agent) => { + shuffledAgents.forEach((agent) => { if (!agents.find((a) => a.slug === agent.slug)) { agents.push(agent); } @@ -194,34 +195,29 @@ function ChatBodyData(props: ChatBodyDataProps) { {!props.isMobileWidth && ( -