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
feat(cos): show add task form by default on tasks page
Adam Eivy44537105969f
diff --git a/.changelog/v0.10.x.md b/.changelog/v0.10.x.mdindex 35e1caecec..7988b3dcee 100644--- a/.changelog/v0.10.x.md+++ b/.changelog/v0.10.x.md@@ -372,6 +372,11 @@ This release introduces a structured changelog documentation system for creating- **UI controls**: Both toggles now visible in the CoS Config tab with tooltips explaining their purpose- **Granular control**: Users can now disable PortOS self-improvement tasks while keeping app improvement tasks active (or vice versa)+### Tasks Page - Always-Visible Add Task Form+- **Form Always Shown**: The Add Task form on the Tasks page is now always visible by default, removing the need to click "+ Add Task" first+- **Streamlined UI**: Removed the "+ Add Task" button and Cancel button since the form is persistently displayed+- **Faster Task Entry**: Users can immediately start typing task descriptions without an extra click+### Web Shell PTY Compatibility Fix- **Node.js 25 Support**: Upgraded node-pty from 1.1.0 to 1.2.0-beta.10 to fix `posix_spawnp failed` error on Node.js 25.x- **Error Handling**: Added error handling to shell session creation to catch PTY spawn failures and report them to the client instead of silently failingdiff --git a/client/src/components/cos/tabs/TasksTab.jsx b/client/src/components/cos/tabs/TasksTab.jsxindex cb785f9d2c..8dd1dc0ef8 100644--- a/client/src/components/cos/tabs/TasksTab.jsx+++ b/client/src/components/cos/tabs/TasksTab.jsx@@ -21,7 +21,7 @@ import TaskItem from './TaskItem';import SortableTaskItem from './SortableTaskItem';export default function TasksTab({ tasks, onRefresh, providers, apps }) {- const [showAddTask, setShowAddTask] = useState(false);+ const [showAddTask] = useState(true);const [newTask, setNewTask] = useState({ description: '', context: '', model: '', provider: '', app: '' });const [addToTop, setAddToTop] = useState(false);const [userTasksLocal, setUserTasksLocal] = useState([]);@@ -223,7 +223,6 @@ export default function TasksTab({ tasks, onRefresh, providers, apps }) {setAttachments([]);setAddToTop(false);setEnhancePrompt(false);- setShowAddTask(false);onRefresh();};@@ -233,27 +232,17 @@ export default function TasksTab({ tasks, onRefresh, providers, apps }) {<div><div className="flex items-center justify-between mb-3"><h3 className="text-lg font-semibold text-white">User Tasks (TASKS.md)</h3>- <div className="flex items-center gap-2">- <button- onClick={async () => {- await api.forceCosEvaluate().catch(err => toast.error(err.message));- toast.success('Evaluation triggered');- }}- className="flex items-center gap-1 text-sm bg-emerald-500/20 hover:bg-emerald-500/30 text-emerald-400 px-3 py-1.5 rounded-lg transition-colors"- aria-label="Run tasks now"- >- <Play size={16} aria-hidden="true" />- Run Now- </button>- <button- onClick={() => setShowAddTask(!showAddTask)}- className="flex items-center gap-1 text-sm bg-port-accent/20 hover:bg-port-accent/30 text-port-accent px-3 py-1.5 rounded-lg transition-colors"- aria-expanded={showAddTask}- >- <Plus size={16} aria-hidden="true" />- Add Task- </button>- </div>+ <button+ onClick={async () => {+ await api.forceCosEvaluate().catch(err => toast.error(err.message));+ toast.success('Evaluation triggered');+ }}+ className="flex items-center gap-1 text-sm bg-emerald-500/20 hover:bg-emerald-500/30 text-emerald-400 px-3 py-1.5 rounded-lg transition-colors"+ aria-label="Run tasks now"+ >+ <Play size={16} aria-hidden="true" />+ Run Now+ </button></div>{/* Add Task Form */}@@ -458,19 +447,7 @@ export default function TasksTab({ tasks, onRefresh, providers, apps }) {))}</div>)}- <div className="flex justify-end gap-2">- <button- onClick={() => {- setShowAddTask(false);- setScreenshots([]);- setAttachments([]);- setEnhancePrompt(false);- }}- className="px-3 py-1.5 text-sm text-gray-400 hover:text-white transition-colors"- disabled={isEnhancing}- >- Cancel- </button>+ <div className="flex justify-end"><buttononClick={handleAddTask}disabled={isEnhancing}@@ -496,7 +473,7 @@ export default function TasksTab({ tasks, onRefresh, providers, apps }) {{/* User Tasks Sections */}{pendingUserTasksLocal.length === 0 && activeUserTasksLocal.length === 0 && blockedUserTasksLocal.length === 0 && completedUserTasksLocal.length === 0 ? (<div className="bg-port-card border border-port-border rounded-lg p-6 text-center text-gray-500">- No user tasks. Click "Add Task" or edit TASKS.md directly.+ No user tasks. Add one above or edit TASKS.md directly.</div>) : (<div className="space-y-3">