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

fix: use consistent || operator for description fallbacks in cos.js

Adam Eivyd470a1b8b64d
diff --git a/server/routes/cos.js b/server/routes/cos.js
index 35655f5359..c333b4a622 100644
--- a/server/routes/cos.js
+++ b/server/routes/cos.js
@@ -1063,7 +1063,7 @@ router.get('/actionable-insights', asyncHandler(async (req, res) => {
priority: criticalIssues.length > 0 ? 'critical' : 'medium',
icon: 'AlertTriangle',
title: `${healthIssues.length} system health issue${healthIssues.length > 1 ? 's' : ''}`,
- description: healthIssues[0]?.message ?? 'System health issue detected',
+ description: healthIssues[0]?.message || 'System health issue detected',
action: { label: 'Check Health', route: '/cos/health' },
count: healthIssues.length
});
@@ -1105,7 +1105,7 @@ router.get('/actionable-insights', asyncHandler(async (req, res) => {
priority: 'info',
icon: 'ListTodo',
title: `${pendingUserTasks.length} pending task${pendingUserTasks.length > 1 ? 's' : ''}`,
- description: pendingUserTasks[0]?.description?.substring(0, 80) ?? 'Pending tasks available',
+ description: pendingUserTasks[0]?.description?.substring(0, 80) || 'Pending tasks available',
action: { label: 'View Tasks', route: '/cos/tasks' },
count: pendingUserTasks.length
});