diff --git a/frontend/src/ui/hooks/useChat.ts b/frontend/src/ui/hooks/useChat.ts index cf7a19d..d2238df 100644 --- a/frontend/src/ui/hooks/useChat.ts +++ b/frontend/src/ui/hooks/useChat.ts @@ -114,6 +114,7 @@ export function useChat() { useEffect(() => { messagesLoadedRef.current = false; clearMessages(); // Clear messages when switching chats + loadMessages(); }, [chat.currentChat, clearMessages]); return {