From 9d297c650a257a22ab73e27bc0df947c7f7f729e Mon Sep 17 00:00:00 2001 From: Stefan de Vogelaere Date: Fri, 23 Jan 2026 02:40:24 +0100 Subject: [PATCH] fix: address PR #644 review comments - Add 'waiting' status to computeHealthStatus for projects with pending features but no active execution (fixes status never being emitted) - Fix undefined RunningAgentInfo type to use local RunningAgent interface Co-Authored-By: Claude Opus 4.5 --- apps/server/src/routes/projects/routes/overview.ts | 5 +++++ .../src/components/views/overview/running-agents-panel.tsx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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);