Skip to content

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

feat(settings): add AI configuration panel with provider and model settings

Steven Enamakelab55bd49303c
diff --git a/app/src/components/settings/panels/AIPanel.tsx b/app/src/components/settings/panels/AIPanel.tsx
index e4debd80e1..85b7d1eb51 100644
--- a/app/src/components/settings/panels/AIPanel.tsx
+++ b/app/src/components/settings/panels/AIPanel.tsx
@@ -194,9 +194,7 @@ const AIPanel = ({ embedded = false }: AIPanelProps = {}) => {
Own = one provider/model for everything. Custom = fine-grained
per-workload routing.
═══════════════════════════════════════════════════════════════ */}
- <PanelSection
- title={t('settings.ai.routing')}
- description={t('settings.ai.routingDesc')}>
+ <PanelSection title={t('settings.ai.routing')} description={t('settings.ai.routingDesc')}>
<div className="flex w-full flex-col gap-3">
<RoutingModeCards
effectiveRoutingMode={effectiveRoutingMode}
diff --git a/app/src/components/settings/panels/ai/ClaudeCodeStatusCard.tsx b/app/src/components/settings/panels/ai/ClaudeCodeStatusCard.tsx
index 544b5b7ca0..a469805ca9 100644
--- a/app/src/components/settings/panels/ai/ClaudeCodeStatusCard.tsx
+++ b/app/src/components/settings/panels/ai/ClaudeCodeStatusCard.tsx
@@ -273,10 +273,7 @@ function ClaudeCodeModal({
<div className="flex items-center justify-between gap-3 rounded-lg border border-line px-3 py-2">
<div className="text-xs">
<div className="font-medium text-content">{t('settings.ai.claudeCode.connection')}</div>
- <div
- className={
- connected ? 'text-sage-600 dark:text-sage-400' : 'text-content-muted'
- }>
+ <div className={connected ? 'text-sage-600 dark:text-sage-400' : 'text-content-muted'}>
{connected
? t('settings.ai.claudeCode.enabled')
: t('settings.ai.claudeCode.notEnabled')}
diff --git a/app/src/components/settings/panels/ai/ModelEntryField.tsx b/app/src/components/settings/panels/ai/ModelEntryField.tsx
index 1e87d0b995..98c684d028 100644
--- a/app/src/components/settings/panels/ai/ModelEntryField.tsx
+++ b/app/src/components/settings/panels/ai/ModelEntryField.tsx
@@ -21,7 +21,6 @@
import { useCallback, useState } from 'react';
import { cn } from '../../../../lib/cn';
-
import { useT } from '../../../../lib/i18n/I18nContext';
import type { ModelInfo } from '../../../../services/api/aiSettingsApi';
import Alert from '../../../ui/Alert';
diff --git a/app/src/components/settings/panels/ai/ProviderAuthSection.tsx b/app/src/components/settings/panels/ai/ProviderAuthSection.tsx
index 1492c1d600..881ae13710 100644
--- a/app/src/components/settings/panels/ai/ProviderAuthSection.tsx
+++ b/app/src/components/settings/panels/ai/ProviderAuthSection.tsx
@@ -72,7 +72,6 @@ export const ProviderAuthSection = ({
<PanelSection
title={t('settings.ai.llmProviders')}
description={t('settings.ai.llmProvidersDesc')}>
-
{/* ─── Rejected-key notices ─────────────────────────────────────────
A BYO key the provider rejected at runtime (401/403). Surfaced
here, next to the key editor, because the failing path is often a
@@ -105,9 +104,7 @@ export const ProviderAuthSection = ({
{/* ─── Provider chip-toggle list ────────────────────────────────── */}
<div className="flex w-full flex-col gap-3">
{loading && <div className="text-xs text-content-muted">{t('common.loading')}</div>}
- {error && (
- <StatusLine saving={false} error={error} savedNote={null} savingLabel="" />
- )}
+ {error && <StatusLine saving={false} error={error} savedNote={null} savingLabel="" />}
<div className="flex flex-wrap gap-1.5">
<ProviderToggleChip
diff --git a/app/src/components/settings/panels/ai/RoutingModeCards.tsx b/app/src/components/settings/panels/ai/RoutingModeCards.tsx
index d6f01aae39..8437a21ff3 100644
--- a/app/src/components/settings/panels/ai/RoutingModeCards.tsx
+++ b/app/src/components/settings/panels/ai/RoutingModeCards.tsx
@@ -21,8 +21,8 @@
* with it — `items-stretch` already equalises flex siblings, and a hard
* pixel floor only clipped or over-padded once the copy was translated.
*/
-import { useT } from '../../../../lib/i18n/I18nContext';
import { cn } from '../../../../lib/cn';
+import { useT } from '../../../../lib/i18n/I18nContext';
import Alert from '../../../ui/Alert';
import { RadioGroupItem, RadioGroupRoot } from '../../../ui/RadioGroup';
import type { RoutingMode } from './aiPanelTypes';