diff --git a/apps/server/src/routes/projects/routes/overview.ts b/apps/server/src/routes/projects/routes/overview.ts index dfbbd206..b9a91c22 100644 --- a/apps/server/src/routes/projects/routes/overview.ts +++ b/apps/server/src/routes/projects/routes/overview.ts @@ -90,6 +90,11 @@ function computeHealthStatus( return 'active'; } + // Pending work but no active execution + if (featureCounts.pending > 0) { + return 'waiting'; + } + // If all features are completed or verified if (totalFeatures > 0 && featureCounts.pending === 0 && featureCounts.running === 0) { return 'completed'; diff --git a/apps/ui/src/components/views/overview/running-agents-panel.tsx b/apps/ui/src/components/views/overview/running-agents-panel.tsx index 9f61166c..fc91170d 100644 --- a/apps/ui/src/components/views/overview/running-agents-panel.tsx +++ b/apps/ui/src/components/views/overview/running-agents-panel.tsx @@ -66,7 +66,7 @@ export function RunningAgentsPanel({ projects }: RunningAgentsPanelProps) { ); const handleAgentKeyDown = useCallback( - (e: React.KeyboardEvent, agent: RunningAgentInfo) => { + (e: React.KeyboardEvent, agent: RunningAgent) => { if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); handleAgentClick(agent);