Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(workflow): handle missing run data in WorkflowRunDetail

Steven Enamakel8bc32b8493bc
diff --git a/app/src/components/intelligence/WorkflowRunDetail.tsx b/app/src/components/intelligence/WorkflowRunDetail.tsx
index f0c3cbeb03..b30746b9b5 100644
--- a/app/src/components/intelligence/WorkflowRunDetail.tsx
+++ b/app/src/components/intelligence/WorkflowRunDetail.tsx
@@ -57,12 +57,12 @@ const PHASE_STATUS_KEY: Record<WorkflowPhaseStatus, string> = {
failed: 'orchestration.phaseStatus.failed',
};
-/** Glyph per phase status — color comes from the surrounding classes. */
-const PHASE_STATUS_DOT: Record<WorkflowPhaseStatus, string> = {
- pending: 'bg-surface-strong',
- running: 'bg-primary-500 animate-pulse',
- completed: 'bg-sage-500',
- failed: 'bg-coral-500',
+/** Badge variant per phase status. */
+const PHASE_STATUS_VARIANT: Record<WorkflowPhaseStatus, BadgeVariant> = {
+ pending: 'neutral',
+ running: 'primary',
+ completed: 'success',
+ failed: 'danger',
};
const TERMINAL_STATUSES: WorkflowRunStatus[] = ['completed', 'failed', 'cancelled', 'interrupted'];