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.

fix: update dependency in input effect for improved attachment handling

Salman-Ahamedc515be957f48
diff --git a/packages/app/src/react/features/ai-chat/components/footer/input.tsx b/packages/app/src/react/features/ai-chat/components/footer/input.tsx
index 0fbea76d..38ee38ab 100644
--- a/packages/app/src/react/features/ai-chat/components/footer/input.tsx
+++ b/packages/app/src/react/features/ai-chat/components/footer/input.tsx
@@ -80,16 +80,7 @@ export const Input = () => {
forceScrollToBottomImmediate({ behavior: 'smooth', delay: 0 });
}, 150);
}
- }, [
- isChatbotDisabled,
- isStreaming,
- stopStreaming,
- message,
- attachments.length,
- sendMessage,
- clear,
- inputRef,
- ]);
+ }, [isChatbotDisabled, uploading, isStreaming, stopStreaming, message, attachments.length, sendMessage, clear, inputRef]);
const handleKeyDown = useCallback(
(e: KeyboardEvent<HTMLTextAreaElement>) => {