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 <noreply@anthropic.com>
This commit is contained in:
Stefan de Vogelaere
2026-01-23 02:40:24 +01:00
parent 68d78f2f5b
commit 9d297c650a
2 changed files with 6 additions and 1 deletions

View File

@@ -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';

View File

@@ -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);