mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-01-30 06:12:03 +00:00
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:
@@ -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';
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user