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
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix(cos): clear screenshot and attachment uploads after task form submission
Adam Eivyb80f4e5da3c0
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex 560141dfb9..a9e9fd2f5c 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -20,5 +20,6 @@- `app-improve-` task IDs were getting `task-` prefix added by `taskParser.js`, causing `updateTask` lookups to fail — tasks were never marked in_progress or completed after agent runs- Recovered `app-improve-` agents after server restart now correctly infer `taskType: 'internal'` instead of `'user'`- Extracted `hasKnownPrefix()` and `isInternalTaskId()` helpers to eliminate prefix check drift across 8 locations+- Screenshot and attachment uploads now clear after task form submission regardless of success or failure## Removeddiff --git a/client/src/components/cos/TaskAddForm.jsx b/client/src/components/cos/TaskAddForm.jsxindex 39328e1fbd..f159717958 100644--- a/client/src/components/cos/TaskAddForm.jsx+++ b/client/src/components/cos/TaskAddForm.jsx@@ -206,14 +206,14 @@ export default function TaskAddForm({ providers, apps, onTaskAdded, compact = fasetIsSubmitting(false);setIsEnhancing(false);- // Always clear description — trivial to retype; preserves screenshots/attachments on error+ // Always clear form inputs after submission attemptsetNewTask(t => ({ ...t, description: '' }));+ setScreenshots([]);+ setAttachments([]);if (!result) return;toast.success('Task added');- setScreenshots([]);- setAttachments([]);onTaskAdded?.();};