fix(deployed-chat): prevent multiple simultaneous messages (#1893)

This commit is contained in:
Siddharth Ganesan
2025-11-11 10:36:14 -08:00
committed by GitHub
parent fc162ab236
commit 41f3d506da

View File

@@ -167,6 +167,7 @@ export const ChatInput: React.FC<{
}
const handleSubmit = () => {
if (isStreaming) return
if (!inputValue.trim() && attachedFiles.length === 0) return
onSubmit?.(inputValue.trim(), false, attachedFiles) // false = not voice input
setInputValue('')