SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.
JavaScript a2aagentic-aiai-agentsdevtoolsmcp-clientn8n-alternativeno-codeopen-sourceorchestrationsmythosvisual-builder
Refactor auto-scroll check in Chats component for improved readability
Salman-Ahamed7654bde88d73
diff --git a/packages/app/src/react/features/ai-chat/components/chats.tsx b/packages/app/src/react/features/ai-chat/components/chats.tsxindex 559ad9f2..22273abb 100644--- a/packages/app/src/react/features/ai-chat/components/chats.tsx+++ b/packages/app/src/react/features/ai-chat/components/chats.tsx@@ -103,9 +103,7 @@ export const Chats: FC<IChatsProps> = (props) => {// CRITICAL: Check if user wants auto-scroll// If user scrolled up >200px, shouldAutoScroll = false// This respects user's intent to read history- if (!shouldAutoScroll) {- return; // Don't scroll if user is reading above- }+ if (!shouldAutoScroll) return; // Don't scroll if user is reading aboveconst now = performance.now();const timeSinceLastScroll = now - lastScrollTimeRef.current;