diff --git a/frontend/src/context/ChatContext.tsx b/frontend/src/context/ChatContext.tsx index bdc4274..451e6cb 100644 --- a/frontend/src/context/ChatContext.tsx +++ b/frontend/src/context/ChatContext.tsx @@ -175,7 +175,7 @@ export const ChatProvider: React.FC<{ children: ReactNode }> = ({ children }) => setIsSending(false); } }, - [currentConversation] + [currentConversation, messages] ); const updateConversationTitle = useCallback(async (id: string, title: string) => {