diff --git a/src/renderer/src/pages/home/Tabs/components/Sessions.tsx b/src/renderer/src/pages/home/Tabs/components/Sessions.tsx index cf4f50e122..4479aaa89a 100644 --- a/src/renderer/src/pages/home/Tabs/components/Sessions.tsx +++ b/src/renderer/src/pages/home/Tabs/components/Sessions.tsx @@ -1,4 +1,5 @@ import { Alert, Button, Spinner } from '@heroui/react' +import { DynamicVirtualList } from '@renderer/components/VirtualList' import { useAgent } from '@renderer/hooks/agents/useAgent' import { useSessions } from '@renderer/hooks/agents/useSessions' import { useRuntime } from '@renderer/hooks/useRuntime' @@ -108,22 +109,25 @@ const Sessions: React.FC = ({ agentId }) => { - {sessions.map((session, index) => ( - - handleDeleteSession(session.id)} - onPress={() => setActiveSessionId(agentId, session.id)} - /> - - ))} + {/* h-9 */} + 9 * 4}> + {(session, index) => ( + + handleDeleteSession(session.id)} + onPress={() => setActiveSessionId(agentId, session.id)} + /> + + )} + )