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

address review: handle failed addTask in job trigger, remove gmail-calendar references

Adam Eivy496f8ca12a78
diff --git a/client/src/components/calendar/ConfigTab.jsx b/client/src/components/calendar/ConfigTab.jsx
index c4110b5de4..28316f4f24 100644
--- a/client/src/components/calendar/ConfigTab.jsx
+++ b/client/src/components/calendar/ConfigTab.jsx
@@ -1,10 +1,10 @@
import { useState } from 'react';
-import { Plus, Trash2, RefreshCw, Globe, Mail } from 'lucide-react';
+import { Plus, Trash2, RefreshCw, Globe } from 'lucide-react';
import toast from 'react-hot-toast';
import * as api from '../../services/api';
-const TYPE_ICONS = { 'outlook-calendar': Globe, 'gmail-calendar': Mail };
-const TYPE_LABELS = { 'outlook-calendar': 'Outlook Calendar (API)', 'gmail-calendar': 'Google Calendar (API)' };
+const TYPE_ICONS = { 'outlook-calendar': Globe };
+const TYPE_LABELS = { 'outlook-calendar': 'Outlook Calendar (API)' };
export default function ConfigTab({ accounts, setAccounts }) {
const [showForm, setShowForm] = useState(false);
diff --git a/server/routes/cos.js b/server/routes/cos.js
index 0ce8ae7a09..9e394dd06b 100644
--- a/server/routes/cos.js
+++ b/server/routes/cos.js
@@ -918,7 +918,11 @@ router.post('/jobs/:id/trigger', asyncHandler(async (req, res) => {
approvalRequired: false
}, 'internal');
- res.json({ success: true, type: 'agent', taskId: taskResult?.id });
+ if (!taskResult?.id) {
+ res.json({ success: false, type: 'agent', error: 'Task was not queued (may be duplicate or blocked)' });
+ return;
+ }
+ res.json({ success: true, type: 'agent', taskId: taskResult.id });
}));
// DELETE /api/cos/jobs/:id - Delete a job