Skip to content

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

fix(runtime-choice): handle missing runtime in onboarding step

Steven Enamakel24ff7db89368
diff --git a/app/src/pages/onboarding/steps/RuntimeChoiceStep.tsx b/app/src/pages/onboarding/steps/RuntimeChoiceStep.tsx
index 74d62b2103..122b21d6dd 100644
--- a/app/src/pages/onboarding/steps/RuntimeChoiceStep.tsx
+++ b/app/src/pages/onboarding/steps/RuntimeChoiceStep.tsx
@@ -1,6 +1,7 @@
import { useState } from 'react';
import { useT } from '../../../lib/i18n/I18nContext';
+import { Badge, type BadgeVariant } from '../../../components/ui';
import OnboardingNextButton from '../components/OnboardingNextButton';
import type { AiMode } from '../OnboardingContext';
@@ -22,26 +23,26 @@ interface ChoiceCardProps {
testId: string;
}
-const ACCENT_CLASSES: Record<
- Accent,
- { selected: string; dot: string; badge: string; highlight: string }
-> = {
+const ACCENT_CLASSES: Record<Accent, { selected: string; dot: string; highlight: string }> = {
sage: {
selected: 'border-sage-500! bg-sage-50 dark:bg-sage-500/10 shadow-xs',
dot: 'bg-sage-500',
- badge: 'bg-sage-500/10 text-sage-700 dark:text-sage-300',
highlight:
'border-sage-300 dark:border-sage-500/40 bg-sage-100 dark:bg-sage-500/20 text-sage-800 dark:text-sage-200',
},
primary: {
selected: 'border-primary-500! bg-primary-50 dark:bg-primary-500/15 shadow-xs',
dot: 'bg-primary-500',
- badge: 'bg-primary-500/10 text-primary-600 dark:text-primary-300',
highlight:
'border-primary-200 dark:border-primary-500/30 bg-primary-50 dark:bg-primary-500/15 text-primary-700 dark:text-primary-300',
},
};
+const ACCENT_BADGE_VARIANT: Record<Accent, BadgeVariant> = {
+ sage: 'success',
+ primary: 'primary',
+};
+
const ChoiceCard = ({
selected,
accent,