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

feat(apps): add task form to app detail tasks tab

Adam Eivy3a1410549f62
diff --git a/.changelog/v1.21.x.md b/.changelog/v1.21.x.md
index b82fc89ebc..6c39fa7e00 100644
--- a/.changelog/v1.21.x.md
+++ b/.changelog/v1.21.x.md
@@ -14,6 +14,7 @@ GSD tab one-click agent spawning and Claude Code launcher.
## Improvements
+- **Add task from app detail page** — the Tasks tab on each app's detail view now includes the CoS TaskAddForm (compact mode) pre-selected to the current app, so you can queue agent tasks without navigating to the CoS page
- **Git status moved to per-app tab** — git status is now a tab within each app's detail view (`/apps/:appId/git`) instead of a standalone cross-app page under Dev Tools, making it contextual to the app you're working on
## Fixes
diff --git a/client/src/components/apps/tabs/TasksTab.jsx b/client/src/components/apps/tabs/TasksTab.jsx
index 56d4ba5aa1..59638adc6e 100644
--- a/client/src/components/apps/tabs/TasksTab.jsx
+++ b/client/src/components/apps/tabs/TasksTab.jsx
@@ -1,7 +1,8 @@
import { useState, useEffect } from 'react';
import { Link } from 'react-router-dom';
-import { RefreshCw, Clock, CheckCircle, XCircle, Activity } from 'lucide-react';
+import { RefreshCw, Clock, Activity } from 'lucide-react';
import BrailleSpinner from '../../BrailleSpinner';
+import TaskAddForm from '../../cos/TaskAddForm';
import * as api from '../../../services/api';
const STATUS_CONFIG = {
@@ -36,6 +37,8 @@ function formatTime(dateStr) {
export default function TasksTab({ appId }) {
const [data, setData] = useState(null);
const [loading, setLoading] = useState(true);
+ const [providers, setProviders] = useState([]);
+ const [apps, setApps] = useState([]);
const fetchAgents = async () => {
setLoading(true);
@@ -46,6 +49,11 @@ export default function TasksTab({ appId }) {
useEffect(() => {
fetchAgents();
+ // Fetch providers and apps for the task add form
+ api.getProviders().catch(() => ({ providers: [] }))
+ .then(d => setProviders(d.providers || []));
+ api.getApps().catch(() => [])
+ .then(a => setApps((a || []).filter(app => app.id !== 'portos-autofixer')));
}, [appId]);
if (loading) {
@@ -59,6 +67,15 @@ export default function TasksTab({ appId }) {
return (
<div className="max-w-5xl space-y-4">
+ {/* Add Task Form */}
+ <TaskAddForm
+ providers={providers}
+ apps={apps}
+ onTaskAdded={fetchAgents}
+ compact
+ defaultApp={appId}
+ />
+
<div className="flex items-center justify-between">
<h3 className="text-lg font-semibold text-white">Recent Agent Tasks</h3>
<button
diff --git a/client/src/components/cos/TaskAddForm.jsx b/client/src/components/cos/TaskAddForm.jsx
index 079b149713..82342521cc 100644
--- a/client/src/components/cos/TaskAddForm.jsx
+++ b/client/src/components/cos/TaskAddForm.jsx
@@ -4,8 +4,8 @@ import toast from 'react-hot-toast';
import * as api from '../../services/api';
import { processScreenshotUploads, processAttachmentUploads, formatFileSize } from '../../utils/fileUpload';
-export default function TaskAddForm({ providers, apps, onTaskAdded, compact = false }) {
- const [newTask, setNewTask] = useState({ description: '', context: '', model: '', provider: '', app: '' });
+export default function TaskAddForm({ providers, apps, onTaskAdded, compact = false, defaultApp = '' }) {
+ const [newTask, setNewTask] = useState({ description: '', context: '', model: '', provider: '', app: defaultApp });
const [addToTop, setAddToTop] = useState(false);
const [enhancePrompt, setEnhancePrompt] = useState(false);
const [isEnhancing, setIsEnhancing] = useState(false);
@@ -196,7 +196,7 @@ export default function TaskAddForm({ providers, apps, onTaskAdded, compact = fa
});
toast.success('Task added');
- setNewTask({ description: '', context: '', model: '', provider: '', app: '' });
+ setNewTask({ description: '', context: '', model: '', provider: '', app: defaultApp });
setScreenshots([]);
setAttachments([]);
setAddToTop(false);