Skip to content

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.

Enhance AIChat component by adding scrollToBottom and showScrollButton props to Footer, improving scroll functionality integration.

Salman-Ahamed7742eb6cc633
diff --git a/packages/app/src/react/features/ai-chat/pages/ai-chat.tsx b/packages/app/src/react/features/ai-chat/pages/ai-chat.tsx
index 083d7e9b..8df68da6 100644
--- a/packages/app/src/react/features/ai-chat/pages/ai-chat.tsx
+++ b/packages/app/src/react/features/ai-chat/pages/ai-chat.tsx
@@ -46,7 +46,7 @@ const AIChat = () => {
const agentSettings = settingsData?.settings;
// Custom Hooks - optimized
- const { setShowScrollButton, smartScrollToBottom, ...scroll } =
+ const { setShowScrollButton, smartScrollToBottom, scrollToBottom, showScrollButton, ...scroll } =
useScrollToBottom(chatContainerRef);
const {
@@ -190,9 +190,11 @@ const AIChat = () => {
smartScrollToBottom={smartScrollToBottom}
/>
<Footer
- uploadError={uploadError}
clearError={clearError}
+ uploadError={uploadError}
chatInputRef={chatInputRef}
+ scrollToBottom={scrollToBottom}
+ showScrollButton={showScrollButton}
submitDisabled={isChatCreating || isAgentLoading || uploadingFiles.size > 0}
/>
</Container>