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: pending task edit form unresponsive to save/cancel taps
Adam Eivy19a62bff25cc
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex a475d62854..bde72000d6 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -25,3 +25,4 @@- CoS agents page crash: pipe characters (`|`) in task descriptions triggered infinite loop in markdown parser — non-table pipes now treated as normal text with safety fallback- CoS agents API returned full output arrays (600KB+) for all agents in listing — output now stripped from listing response and loaded on demand- **Resume Agent modal not dismissing** — clicking "Queue Resume Task" successfully queued the task but left the modal open; modal now closes on successful submit+- **Pending task edit form unresponsive** — save/cancel buttons on the edit form for pending tasks did not respond to taps; dnd-kit's sortable wrapper interfered with pointer events inside sortable items. Sorting is now disabled while editing, pointer events are stopped from propagating through the edit form, and button touch targets are enlarged to 40px minimum heightdiff --git a/client/src/components/cos/tabs/SortableTaskItem.jsx b/client/src/components/cos/tabs/SortableTaskItem.jsxindex 4fdff476ea..abf7910384 100644--- a/client/src/components/cos/tabs/SortableTaskItem.jsx+++ b/client/src/components/cos/tabs/SortableTaskItem.jsx@@ -1,8 +1,10 @@+import { useState } from 'react';import { useSortable } from '@dnd-kit/sortable';import { CSS } from '@dnd-kit/utilities';import TaskItem from './TaskItem';export default function SortableTaskItem({ task, onRefresh, providers, durations, apps }) {+ const [isEditing, setIsEditing] = useState(false);const {attributes,listeners,@@ -10,7 +12,7 @@ export default function SortableTaskItem({ task, onRefresh, providers, durationstransform,transition,isDragging,- } = useSortable({ id: task.id });+ } = useSortable({ id: task.id, disabled: isEditing });const style = {transform: CSS.Transform.toString(transform),@@ -27,7 +29,8 @@ export default function SortableTaskItem({ task, onRefresh, providers, durationsproviders={providers}durations={durations}apps={apps}- dragHandleProps={{ ...attributes, ...listeners }}+ dragHandleProps={isEditing ? undefined : { ...attributes, ...listeners }}+ onEditingChange={setIsEditing}/></div>);diff --git a/client/src/components/cos/tabs/TaskItem.jsx b/client/src/components/cos/tabs/TaskItem.jsxindex 78a4ac9149..15b6f41aa4 100644--- a/client/src/components/cos/tabs/TaskItem.jsx+++ b/client/src/components/cos/tabs/TaskItem.jsx@@ -1,4 +1,4 @@-import { useState, useMemo, useRef, useEffect } from 'react';+import { useState, useMemo, useRef, useEffect, useCallback } from 'react';import {Clock,Activity,@@ -94,8 +94,12 @@ function getSuccessRateStyle(rate) {return { bg: 'bg-port-error/15', text: 'text-port-error', label: 'low' };}-export default function TaskItem({ task, isSystem, awaitingApproval, onRefresh, providers, durations, dragHandleProps, apps }) {- const [editing, setEditing] = useState(false);+export default function TaskItem({ task, isSystem, awaitingApproval, onRefresh, providers, durations, dragHandleProps, apps, onEditingChange }) {+ const [editing, setEditingInternal] = useState(false);+ const setEditing = useCallback((val) => {+ setEditingInternal(val);+ onEditingChange?.(val);+ }, [onEditingChange]);const [editData, setEditData] = useState({description: task.description,context: task.metadata?.context || '',@@ -283,7 +287,7 @@ export default function TaskItem({ task, isSystem, awaitingApproval, onRefresh,</div>{editing ? (- <div className="space-y-2">+ <div className="space-y-2" onPointerDown={e => e.stopPropagation()}><inputtype="text"value={editData.description}@@ -324,15 +328,15 @@ export default function TaskItem({ task, isSystem, awaitingApproval, onRefresh,<div className="flex gap-2"><buttononClick={handleSave}- className="flex items-center gap-1 text-xs text-port-success hover:text-port-success/80"+ className="flex items-center gap-1 text-sm px-3 py-2 min-h-[40px] text-port-success hover:text-port-success/80 bg-port-success/10 hover:bg-port-success/20 rounded transition-colors">- <Save size={12} aria-hidden="true" /> Save+ <Save size={14} aria-hidden="true" /> Save</button><buttononClick={() => setEditing(false)}- className="flex items-center gap-1 text-xs text-gray-500 hover:text-white"+ className="flex items-center gap-1 text-sm px-3 py-2 min-h-[40px] text-gray-400 hover:text-white bg-port-bg hover:bg-port-border rounded transition-colors">- <X size={12} aria-hidden="true" /> Cancel+ <X size={14} aria-hidden="true" /> Cancel</button></div></div>