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: pass correct task type when deleting system tasks
Adam Eivybd29d7dcd344
diff --git a/.changelog/v0.10.x.md b/.changelog/v0.10.x.mdindex b23287d6d8..d35142430a 100644--- a/.changelog/v0.10.x.md+++ b/.changelog/v0.10.x.md@@ -95,6 +95,9 @@ This release introduces a structured changelog documentation system for creating- **Model Compatibility Validation**: When spawning agents, models are now validated against the target provider's model list - prevents invalid combinations like using Claude models with the Codex CLI provider- **Graceful Fallback**: Invalid model/provider combinations fall back to the appropriate tier model for the actual provider with a warning log+### System Task Deletion+- **Task Type Detection**: Deleting system tasks (prefixed with `sys-`) now correctly passes `type=internal` to the API, fixing "Task not found" errors when deleting auto-generated investigation tasks+## 🗑️ Removed### Dead Code Cleanupdiff --git a/client/src/components/cos/tabs/TaskItem.jsx b/client/src/components/cos/tabs/TaskItem.jsxindex e73cdb9661..15bbc31b59 100644--- a/client/src/components/cos/tabs/TaskItem.jsx+++ b/client/src/components/cos/tabs/TaskItem.jsx@@ -126,7 +126,8 @@ export default function TaskItem({ task, isSystem, awaitingApproval, onRefresh,};const handleDelete = async () => {- await api.deleteCosTask(task.id).catch(err => toast.error(err.message));+ const taskType = isSystem ? 'internal' : 'user';+ await api.deleteCosTask(task.id, taskType).catch(err => toast.error(err.message));toast.success('Task deleted');onRefresh();};diff --git a/client/src/services/api.js b/client/src/services/api.jsindex 72b1256b63..56c0498381 100644--- a/client/src/services/api.js+++ b/client/src/services/api.js@@ -238,7 +238,7 @@ export const updateCosTask = (id, updates) => request(`/cos/tasks/${id}`, {method: 'PUT',body: JSON.stringify(updates)});-export const deleteCosTask = (id) => request(`/cos/tasks/${id}`, { method: 'DELETE' });+export const deleteCosTask = (id, taskType = 'user') => request(`/cos/tasks/${id}?type=${taskType}`, { method: 'DELETE' });export const reorderCosTasks = (taskIds) => request('/cos/tasks/reorder', {method: 'POST',body: JSON.stringify({ taskIds })