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.

Update SendButton component to disable when uploading files in addition to existing conditions. This change enhances user experience by preventing submissions during file uploads.

Salman-Ahamed0da7ec4afadc
diff --git a/packages/app/src/react/features/ai-chat/components/input.tsx b/packages/app/src/react/features/ai-chat/components/input.tsx
index a972aecf..05592e1f 100644
--- a/packages/app/src/react/features/ai-chat/components/input.tsx
+++ b/packages/app/src/react/features/ai-chat/components/input.tsx
@@ -285,7 +285,7 @@ export const ChatInput = () => {
<div onClick={(e) => e.stopPropagation()}>
<SendButton
isProcessing={isProcessing || isStreaming}
- disabled={!canSubmit}
+ disabled={!canSubmit || uploadingIds.size > 0}
onClick={handleSubmit}
/>
</div>