diff --git a/frontend/src/components/shared/task-form.tsx b/frontend/src/components/shared/task-form.tsx index 3f71dadca9c5..bc6b53c24748 100644 --- a/frontend/src/components/shared/task-form.tsx +++ b/frontend/src/components/shared/task-form.tsx @@ -90,7 +90,9 @@ export function TaskForm({ ref }: TaskFormProps) { const formData = new FormData(event.currentTarget); const q = formData.get("q")?.toString(); - newConversationMutation.mutate({ q }); + if (q?.trim()) { + newConversationMutation.mutate({ q }); + } }; return (