Skip to content

The open-source app everyone uses to manage agents at work

fix(ui): dim paused agents in list and org chart views

plind-dm045a3d54b939
diff --git a/ui/src/pages/Agents.tsx b/ui/src/pages/Agents.tsx
index a157f77772..7051b7753b 100644
--- a/ui/src/pages/Agents.tsx
+++ b/ui/src/pages/Agents.tsx
@@ -234,6 +234,7 @@ export function Agents() {
title={agent.name}
subtitle={`${roleLabels[agent.role] ?? agent.role}${agent.title ? ` - ${agent.title}` : ""}`}
to={agentUrl(agent)}
+ className={agent.pausedAt ? "opacity-50" : ""}
leading={
<span className="relative flex h-2.5 w-2.5">
<span
@@ -329,7 +330,7 @@ function OrgTreeNode({
<div style={{ paddingLeft: depth * 24 }}>
<Link
to={agent ? agentUrl(agent) : `/agents/${node.id}`}
- className="flex items-center gap-3 px-3 py-2 hover:bg-accent/30 transition-colors w-full text-left no-underline text-inherit"
+ className={cn("flex items-center gap-3 px-3 py-2 hover:bg-accent/30 transition-colors w-full text-left no-underline text-inherit", agent?.pausedAt && "opacity-50")}
>
<span className="relative flex h-2.5 w-2.5 shrink-0">
<span className={`absolute inline-flex h-full w-full rounded-full ${statusColor}`} />