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 auth fields gracefully

Steven Enamakel5cdfd5c62c3c
diff --git a/app/src/components/settings/panels/ai/ProviderAuthSection.tsx b/app/src/components/settings/panels/ai/ProviderAuthSection.tsx
index 0a90bba55f..4123070063 100644
--- a/app/src/components/settings/panels/ai/ProviderAuthSection.tsx
+++ b/app/src/components/settings/panels/ai/ProviderAuthSection.tsx
@@ -16,9 +16,8 @@
* internal dialog from the outside, so they keep a two-row band of their own
* whether connected or not.
*/
-import { LuCircleAlert } from 'react-icons/lu';
-
import { useState } from 'react';
+import { LuCircleAlert, LuPlus } from 'react-icons/lu';
import { useT } from '../../../../lib/i18n/I18nContext';
import type { ProviderAuthError } from '../../../../services/api/aiSettingsApi';
@@ -44,9 +43,10 @@ import {
type LocalChipSlug,
providerToggleAriaLabel,
} from './aiPanelTypes';
+import { AddProviderDialog, type ProviderOptionGroup } from './AddProviderDialog';
import { ClaudeCodeConnect } from './ClaudeCodeStatusCard';
import { ProviderGroup, ProviderListRow, type ProviderRowAction } from './ProviderListRow';
-import { type ProviderOptionGroup, ProviderPicker } from './ProviderPicker';
+
const LOCAL_RUNTIME_SLUGS = ['lmstudio', 'ollama', 'omlx'] as const;