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(cos): hide UUID fallback in agent card and task item app badges

Adam Eivye0e6888732e6
diff --git a/client/src/components/cos/tabs/AgentCard.jsx b/client/src/components/cos/tabs/AgentCard.jsx
index 4229a4223e..78d738fb4a 100644
--- a/client/src/components/cos/tabs/AgentCard.jsx
+++ b/client/src/components/cos/tabs/AgentCard.jsx
@@ -273,9 +273,9 @@ export default function AgentCard({ agent, onKill, onDelete, onResume, completed
<div className="flex items-center gap-2 flex-wrap min-w-0 flex-1">
<Cpu size={16} aria-hidden="true" className={`flex-shrink-0 ${completed ? 'text-gray-500' : 'text-port-accent animate-pulse'}`} />
<span className="font-mono text-sm text-gray-400 truncate">{agent.id}</span>
- {agent.metadata?.taskApp && (
+ {agent.metadata?.taskApp && (agent.metadata.taskAppName || agent.metadata.workspaceName) && !/^[0-9a-f]{8}-[0-9a-f]{4}-/.test(agent.metadata.taskAppName || agent.metadata.workspaceName) && (
<span className="px-1.5 py-0.5 text-xs bg-cyan-500/20 text-cyan-400 rounded flex-shrink-0" title={agent.metadata.workspacePath || agent.metadata.taskApp}>
- {agent.metadata.taskAppName || agent.metadata.workspaceName || agent.metadata.taskApp}
+ {agent.metadata.taskAppName || agent.metadata.workspaceName}
</span>
)}
{isSystemAgent && (
diff --git a/client/src/components/cos/tabs/TaskItem.jsx b/client/src/components/cos/tabs/TaskItem.jsx
index a777157dba..c33fa23808 100644
--- a/client/src/components/cos/tabs/TaskItem.jsx
+++ b/client/src/components/cos/tabs/TaskItem.jsx
@@ -223,9 +223,9 @@ export default function TaskItem({ task, isSystem, awaitingApproval, onRefresh,
<div className="flex-1 min-w-0">
<div className="flex items-center gap-2 mb-1 flex-wrap">
<span className="text-sm font-mono text-gray-500">{task.id}</span>
- {task.metadata?.app && (
+ {task.metadata?.app && apps?.find(a => a.id === task.metadata.app)?.name && (
<span className="px-1.5 py-0.5 text-xs bg-cyan-500/20 text-cyan-400 rounded flex-shrink-0" title={task.metadata.app}>
- {apps?.find(a => a.id === task.metadata.app)?.name || task.metadata.app}
+ {apps.find(a => a.id === task.metadata.app).name}
</span>
)}
{/* Duration estimate for pending tasks */}
diff --git a/server/services/subAgentSpawner.js b/server/services/subAgentSpawner.js
index d196286830..94cf19b366 100644
--- a/server/services/subAgentSpawner.js
+++ b/server/services/subAgentSpawner.js
@@ -1238,7 +1238,7 @@ export async function spawnAgentForTask(task) {
? await getAppWorkspace(task.metadata.app)
: ROOT_DIR;
const resolvedAppName = task.metadata?.app
- ? (await getAppById(task.metadata.app).catch(() => null))?.name || task.metadata.app
+ ? (await getAppById(task.metadata.app).catch(() => null))?.name || null
: null;
// Check for conflicts with active agents and decide on worktree usage