Scroll down when Quilly appears

This commit is contained in:
Alex Gleason committed 2025-09-29 22:19:18 -05:00
1 parent d18cfb4849
commit 8b438c8c1b
1 file changed
+5 -3
+5 -3
View File
@@ -300,10 +300,12 @@ export const ChatPane = forwardRef<ChatPaneRef, ChatPaneProps>(({
setIsModelSelectorOpen(true);
}, []);
// Scroll to bottom when AI error occurs
// Scroll to bottom when any error occurs (AI error or console error)
useEffect(() => {
scrollToBottom();
}, [aiError, scrollToBottom]);
if (displayError) {
scrollToBottom();
}
}, [displayError, scrollToBottom]);
// Check for autostart parameter and trigger AI generation
useEffect(() => {