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: restore error toast on task add failure, add PS1 exit code check for submodules

Adam Eivycfdef84ebf8c
diff --git a/.changelog/v1.42.0.md b/.changelog/v1.42.0.md
index ef38a3eb8e..ea585d6cd0 100644
--- a/.changelog/v1.42.0.md
+++ b/.changelog/v1.42.0.md
@@ -26,9 +26,7 @@ Released: 2026-04-04
- `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
-
-## Removed
+- Screenshot and attachment uploads now clear after successful task form submission
## Full Changelog
diff --git a/client/src/components/cos/TaskAddForm.jsx b/client/src/components/cos/TaskAddForm.jsx
index f159717958..ee9011fe55 100644
--- a/client/src/components/cos/TaskAddForm.jsx
+++ b/client/src/components/cos/TaskAddForm.jsx
@@ -201,18 +201,21 @@ export default function TaskAddForm({ providers, apps, onTaskAdded, compact = fa
mimeType: a.mimeType
})) : undefined,
position: addToTop ? 'top' : 'bottom'
- }).catch(() => null);
+ }).catch(err => {
+ toast.error(err.message || 'Failed to add task');
+ return null;
+ });
setIsSubmitting(false);
setIsEnhancing(false);
- // Always clear form inputs after submission attempt
+ if (!result) return;
+
+ // Only clear form inputs after successful submission
setNewTask(t => ({ ...t, description: '' }));
setScreenshots([]);
setAttachments([]);
- if (!result) return;
-
toast.success('Task added');
onTaskAdded?.();
};
diff --git a/update.ps1 b/update.ps1
index 1e571514fc..8b989a3e4a 100644
--- a/update.ps1
+++ b/update.ps1
@@ -111,6 +111,7 @@ Write-SafeHost ""
# Update submodules (slash-do and any others)
Step "submodules" "running" "Updating submodules..."
Invoke-Logged git submodule update --init --recursive --remote
+if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
Step "submodules" "done" "Submodules updated"
Write-SafeHost ""