Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix(cos): reliably reset task add form state after submission

Adam Eivy5471a27313db
diff --git a/client/src/components/cos/TaskAddForm.jsx b/client/src/components/cos/TaskAddForm.jsx
index d8a38c5b3f..3d4d58b1bf 100644
--- a/client/src/components/cos/TaskAddForm.jsx
+++ b/client/src/components/cos/TaskAddForm.jsx
@@ -201,11 +201,10 @@ export default function TaskAddForm({ providers, apps, onTaskAdded, compact = fa
mimeType: a.mimeType
})) : undefined,
position: addToTop ? 'top' : 'bottom'
- }).catch(err => {
- toast.error(err.message || 'Failed to add task');
- setIsSubmitting(false);
- return null;
- });
+ }).catch(() => null);
+
+ setIsSubmitting(false);
+ setIsEnhancing(false);
if (!result) return;
@@ -213,7 +212,6 @@ export default function TaskAddForm({ providers, apps, onTaskAdded, compact = fa
setNewTask(t => ({ ...t, description: '' }));
setScreenshots([]);
setAttachments([]);
- setIsSubmitting(false);
onTaskAdded?.();
};