Skip to content

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

fix(ai): handle missing provider name in add provider dialog

Steven Enamakel370fe48dd35d
diff --git a/app/src/components/settings/panels/ai/AddProviderDialog.tsx b/app/src/components/settings/panels/ai/AddProviderDialog.tsx
index bd6032f530..ba63edc4da 100644
--- a/app/src/components/settings/panels/ai/AddProviderDialog.tsx
+++ b/app/src/components/settings/panels/ai/AddProviderDialog.tsx
@@ -59,7 +59,15 @@ export interface ProviderCategory {
options: ProviderOption[];
}
-const OptionSwatch = ({ label, tone, className }: { label: string; tone: string; className?: string }) => (
+const OptionSwatch = ({
+ label,
+ tone,
+ className,
+}: {
+ label: string;
+ tone: string;
+ className?: string;
+}) => (
<span
aria-hidden
className={cn(
@@ -111,7 +119,11 @@ const CategorySelect = ({
value={option.slug}
data-testid={`add-provider-option-${option.slug}`}>
<span className="flex min-w-0 items-center gap-2">
- <OptionSwatch label={option.label} tone={option.tone} className="h-6 w-6 text-[10px]" />
+ <OptionSwatch
+ label={option.label}
+ tone={option.tone}
+ className="h-6 w-6 text-[10px]"
+ />
<span className="flex min-w-0 flex-col">
<span className="truncate text-sm text-content">{option.label}</span>
<span className="truncate font-mono text-[10px] leading-3 text-content-muted">