From e5b11718330cbe11e6c87a3b16c83de5caa93da7 Mon Sep 17 00:00:00 2001 From: hsiegeln <37154749+hsiegeln@users.noreply.github.com> Date: Thu, 16 Apr 2026 15:12:01 +0200 Subject: [PATCH] feat: replace Errors column with CPU in expanded agent table Show per-instance CPU usage percentage instead of error rate in the DataTable. Highlights >80% CPU in error color. Co-Authored-By: Claude Opus 4.6 (1M context) --- ui/src/pages/AgentHealth/AgentHealth.tsx | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/ui/src/pages/AgentHealth/AgentHealth.tsx b/ui/src/pages/AgentHealth/AgentHealth.tsx index ecfa47cb..68855210 100644 --- a/ui/src/pages/AgentHealth/AgentHealth.tsx +++ b/ui/src/pages/AgentHealth/AgentHealth.tsx @@ -386,13 +386,16 @@ export default function AgentHealth() { ), }, { - key: 'errorRate', - header: 'Errors', - render: (_val, row) => ( - - {formatErrorRate(row.errorRate)} - - ), + key: 'cpuUsage', + header: 'CPU', + render: (_val, row) => { + const cpu = (row as AgentInstance & { cpuUsage?: number }).cpuUsage; + return ( + 0.8 ? styles.instanceError : styles.instanceMeta}> + {cpu != null && cpu >= 0 ? `${(cpu * 100).toFixed(0)}%` : '\u2014'} + + ); + }, }, { key: 'lastHeartbeat',