Fix loading messages from .ai dir

This commit is contained in:
Alex Gleason committed 2025-08-23 01:31:22 -05:00
1 parent 4df17bc17e
commit e07f55e5ed
2 files changed
+14 -11

No files matched your search

+1 -5
View File
@@ -81,7 +81,6 @@ When creating new components or pages, follow the existing patterns in the codeb
currentStreamingMessageId,
sendMessage,
stopStreaming,
clearMessages,
} = useStreamingChat({
projectId,
projectName,
@@ -191,10 +190,7 @@ BASE_DOMAIN=nostrdeploy.com`);
}
};
// Clear messages when navigating between projects
useEffect(() => {
clearMessages();
}, [projectId, clearMessages]);
// Note: Message clearing and history loading is now handled in useStreamingChat hook
useEffect(() => {
if (scrollAreaRef.current && messages) {