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 panel with provider and model configuration

Steven Enamakel9e369e578b3d
diff --git a/app/src/components/settings/panels/AIPanel.tsx b/app/src/components/settings/panels/AIPanel.tsx
index 9e58b50d4b..cf8e481ed2 100644
--- a/app/src/components/settings/panels/AIPanel.tsx
+++ b/app/src/components/settings/panels/AIPanel.tsx
@@ -21,7 +21,6 @@ import {
import { connectOpenRouterViaOAuth } from '../../../utils/openrouterOAuth';
import PanelPage from '../../layout/PanelPage';
import Button from '../../ui/Button';
-import Card from '../../ui/Card';
import { ModalShell } from '../../ui/ModalShell';
import SettingsBackButton from '../components/SettingsBackButton';
import { useSettingsNavigation } from '../hooks/useSettingsNavigation';
@@ -210,7 +209,7 @@ const AIPanel = ({
label: t('settings.ai.llmProviders'),
contentClassName: embedded || hideTabChrome ? '' : 'p-4',
content: (
- <div className="flex w-full flex-col">
+ <div className="flex w-full flex-col gap-4">
<ProviderAuthSection
draft={draft}
persist={persist}
@@ -257,41 +256,39 @@ const AIPanel = ({
"managed / own / custom" mode any more: every row is explicit,
and Managed is just one of the sources a row can pick.
═══════════════════════════════════════════════════════════════ */}
- <Card className="w-full">
- <WorkloadTable
- title={t('settings.ai.routing.chatAndConversations')}
- description={t('settings.ai.routing.chatDesc')}>
- <DefaultModelRow
- value={draft.defaultModel}
- onChange={model => persist({ ...draft, defaultModel: model })}
+ <WorkloadTable
+ title={t('settings.ai.routing.chatAndConversations')}
+ description={t('settings.ai.routing.chatDesc')}
+ data-testid="routing-group-chat">
+ <DefaultModelRow
+ value={draft.defaultModel}
+ onChange={model => persist({ ...draft, defaultModel: model })}
+ />
+ {chatRows.map(w => (
+ <WorkloadRow
+ key={w.id}
+ workload={w}
+ ref_={draft.routing[w.id]}
+ cloudProviders={draft.cloudProviders}
+ onCustomClick={() => setPickerFor(w.id)}
/>
- {chatRows.map(w => (
- <WorkloadRow
- key={w.id}
- workload={w}
- ref_={draft.routing[w.id]}
- cloudProviders={draft.cloudProviders}
- onCustomClick={() => setPickerFor(w.id)}
- />
- ))}
- </WorkloadTable>
- </Card>
+ ))}
+ </WorkloadTable>
- <Card className="w-full">
- <WorkloadTable
- title={t('settings.ai.routing.backgroundTasks')}
- description={t('settings.ai.routing.bgTasksDesc')}>
- {bgRows.map(w => (
- <WorkloadRow
- key={w.id}
- workload={w}
- ref_={draft.routing[w.id]}
- cloudProviders={draft.cloudProviders}
- onCustomClick={() => setPickerFor(w.id)}
- />
- ))}
- </WorkloadTable>
- </Card>
+ <WorkloadTable
+ title={t('settings.ai.routing.backgroundTasks')}
+ description={t('settings.ai.routing.bgTasksDesc')}
+ data-testid="routing-group-background">
+ {bgRows.map(w => (
+ <WorkloadRow
+ key={w.id}
+ workload={w}
+ ref_={draft.routing[w.id]}
+ cloudProviders={draft.cloudProviders}
+ onCustomClick={() => setPickerFor(w.id)}
+ />
+ ))}
+ </WorkloadTable>
{isDirty && (
<SaveBar
diffSummary={diffSummary}
diff --git a/app/src/components/settings/panels/VoicePanelRoutingSection.tsx b/app/src/components/settings/panels/VoicePanelRoutingSection.tsx
index 3bacdd7fdd..55f6cb2537 100644
--- a/app/src/components/settings/panels/VoicePanelRoutingSection.tsx
+++ b/app/src/components/settings/panels/VoicePanelRoutingSection.tsx
@@ -34,14 +34,25 @@ interface VoicePanelRoutingSectionProps {
type TestResult = { ok: boolean; detail: string } | null;
-/** Label with a small leading icon, for the two workload rows. */
-const WorkloadLabel = ({ icon, children }: { icon: ReactNode; children: ReactNode }) => (
- <span className="flex items-center gap-2">
- <span className="flex h-7 w-7 shrink-0 items-center justify-center rounded-md bg-surface-muted text-content-secondary">
- {icon}
+/** A workload row (speech to text / text to speech): icon + label, then its controls. */
+const WorkloadRow = ({
+ icon,
+ label,
+ control,
+}: {
+ icon: ReactNode;
+ label: string;
+ control: ReactNode;
+}) => (
+ <div className="flex flex-wrap items-center justify-between gap-3 px-4 py-3">
+ <span className="flex items-center gap-2.5 text-sm font-medium text-content">
+ <span className="flex h-8 w-8 shrink-0 items-center justify-center rounded-lg bg-surface-muted text-content-secondary">
+ {icon}
+ </span>
+ {label}
</span>
- {children}
- </span>
+ {control}
+ </div>
);
/** Outcome of a Test click: a status chip plus the provider's detail text. */
@@ -82,261 +93,247 @@ const VoicePanelRoutingSection = ({
saveRouting,
}: VoicePanelRoutingSectionProps) => {
const [isTestingStt, setIsTestingStt] = useState(false);
- const [sttTestResult, setSttTestResult] = useState<{ ok: boolean; detail: string } | null>(null);
+ const [sttTestResult, setSttTestResult] = useState<TestResult>(null);
const [isTestingTts, setIsTestingTts] = useState(false);
- const [ttsTestResult, setTtsTestResult] = useState<{ ok: boolean; detail: string } | null>(null);
+ const [ttsTestResult, setTtsTestResult] = useState<TestResult>(null);
+
+ const runSttTest = async () => {
+ setIsTestingStt(true);
+ setSttTestResult(null);
+ try {
+ setSttTestResult(await testVoiceProvider('stt', sttProvider || 'cloud'));
+ } catch (err) {
+ setSttTestResult({ ok: false, detail: err instanceof Error ? err.message : 'Test failed' });
+ } finally {
+ setIsTestingStt(false);
+ }
+ };
+
+ const runTtsTest = async () => {
+ setIsTestingTts(true);
+ setTtsTestResult(null);
+ try {
+ // For ElevenLabs, include the voice ID so the test actually synthesizes
+ // audio with the selected voice.
+ let ttsTestProvider = ttsProvider || 'cloud';
+ if (ttsProvider === 'elevenlabs' && elevenlabsVoiceId) {
+ ttsTestProvider = `elevenlabs:${elevenlabsVoiceId}`;
+ }
+ setTtsTestResult(await testVoiceProvider('tts', ttsTestProvider));
+ } catch (err) {
+ setTtsTestResult({ ok: false, detail: err instanceof Error ? err.message : 'Test failed' });
+ } finally {
+ setIsTestingTts(false);
+ }
+ };
+
+ const piperVoiceIsPreset = piperVoicePresetIds.some(v => v === ttsVoice);
return (
- <SettingsSection title={t('voice.routing.title')} description={t('voice.routing.desc')}>
- <SettingsRow
- stacked
- control={
- <div className="grid grid-cols-1 sm:grid-cols-2 gap-4">
- {/* STT routing */}
- <div className="space-y-2">
- <label className="block space-y-1">
- <span className="text-xs font-medium text-content-muted dark:text-content-secondary">
- {t('voice.providers.sttProvider')}
- </span>
- <SettingsSelect
- aria-label={t('voice.providers.sttProviderAria')}
- data-testid="stt-provider-select"
- value={sttProvider || 'cloud'}
- disabled={isSavingProviders}
- onChange={e => onSttProviderChange(e.target.value)}
- className="w-full">
- <option value="cloud">{t('voice.providers.backendSttProxy')}</option>
- {sttExternalProviders.map(p => (
- <option key={p.slug} value={p.slug}>
- {p.label}
- </option>
- ))}
- </SettingsSelect>
- </label>
+ <Card title={t('voice.routing.title')} description={t('voice.routing.desc')}>
+ {/* ── Speech to text ─────────────────────────────────────────── */}
+ <div>
+ <WorkloadRow
+ icon={<Mic className="h-4 w-4" aria-hidden />}
+ label={t('voice.providers.sttProvider')}
+ control={
+ <div className="flex items-center gap-2">
+ <NativeSelect
+ aria-label={t('voice.providers.sttProviderAria')}
+ data-testid="stt-provider-select"
+ value={sttProvider || 'cloud'}
+ disabled={isSavingProviders}
+ onChange={e => onSttProviderChange(e.target.value)}
+ inputSize="sm"
+ className="w-56">
+ <option value="cloud">{t('voice.providers.backendSttProxy')}</option>
+ {sttExternalProviders.map(p => (
+ <option key={p.slug} value={p.slug}>
+ {p.label}
+ </option>
+ ))}
+ </NativeSelect>
+ <Button
+ type="button"
+ variant="secondary"
+ size="sm"
+ data-testid="test-stt-button"
+ leadingIcon={
+ isTestingStt ? <Spinner /> : <Play className="h-3.5 w-3.5" aria-hidden />
+ }
+ disabled={isTestingStt || !sttProvider}
+ onClick={() => void runSttTest()}>
+ {isTestingStt ? t('voice.modal.testing') : t('voice.routing.testStt')}
+ </Button>
+ </div>
+ }
+ />
+ <TestResultLine result={sttTestResult} t={t} />
+ </div>
- <div className="flex items-center gap-2">
- <Button
- type="button"
- variant="secondary"
- size="xs"
- data-testid="test-stt-button"
- disabled={isTestingStt || !sttProvider}
- onClick={async () => {
- setIsTestingStt(true);
- setSttTestResult(null);
- try {
- const result = await testVoiceProvider('stt', sttProvider || 'cloud');
- setSttTestResult(result);
- } catch (err) {
- setSttTestResult({
- ok: false,
- detail: err instanceof Error ? err.message : 'Test failed',
- });
- } finally {
- setIsTestingStt(false);
- }
- }}>
- {isTestingStt ? t('voice.modal.testing') : t('voice.routing.testStt')}
- </Button>
- {sttTestResult && (
- <span
- className={`text-[11px] ${
- sttTestResult.ok
- ? 'text-sage-600 dark:text-sage-300'
- : 'text-coral-600 dark:text-coral-300'
- }`}>
- {sttTestResult.detail}
- </span>
+ {/* ── Text to speech ─────────────────────────────────────────── */}
+ <div>
+ <WorkloadRow
+ icon={<Volume2 className="h-4 w-4" aria-hidden />}
+ label={t('voice.providers.ttsProvider')}
+ control={
+ <div className="flex items-center gap-2">
+ <NativeSelect
+ aria-label={t('voice.providers.ttsProviderAria')}
+ data-testid="tts-provider-select"
+ value={ttsProvider || 'cloud'}
+ disabled={isSavingProviders}
+ onChange={e => onTtsProviderChange(e.target.value)}
+ inputSize="sm"
+ className="w-56">
+ <option value="cloud">{t('voice.providers.cloudElevenLabsProxy')}</option>
+ {/* Piper only shown when enabled */}
+ {(ttsProvider === 'piper' || piperEnabledElsewhere) && (
+ <option value="piper">{t('voice.providers.localPiper')}</option>
)}
- </div>
+ {ttsExternalProviders.map(p => (
+ <option key={p.slug} value={p.slug}>
+ {p.label}
+ </option>
+ ))}
+ </NativeSelect>
+ <Button
+ type="button"
+ variant="secondary"
+ size="sm"
+ data-testid="test-tts-button"
+ leadingIcon={
+ isTestingTts ? <Spinner /> : <Play className="h-3.5 w-3.5" aria-hidden />
+ }
+ disabled={isTestingTts || !ttsProvider || ttsTestBlockedByInstall}
+ title={ttsTestBlockedByInstall ? t('voice.providers.notInstalled') : undefined}
+ onClick={() => void runTtsTest()}>
+ {isTestingTts ? t('voice.modal.testing') : t('voice.routing.testTts')}
+ </Button>
</div>
+ }
+ />
+ <TestResultLine result={ttsTestResult} t={t} />
+ </div>
- {/* TTS routing */}
- <div className="space-y-2">
- <label className="block space-y-1">
- <span className="text-xs font-medium text-content-muted dark:text-content-secondary">
- {t('voice.providers.ttsProvider')}
- </span>
- <SettingsSelect
- aria-label={t('voice.providers.ttsProviderAria')}
- data-testid="tts-provider-select"
- value={ttsProvider || 'cloud'}
+ {/* Piper voice picker — shown when Piper is selected */}
+ {ttsProvider === 'piper' && (
+ <Field
+ label={t('voice.providers.piperVoice')}
+ description={t('voice.providers.piperVoicesDesc')}
+ control={
+ <div className="flex w-72 flex-col gap-2">
+ <NativeSelect
+ aria-label={t('voice.providers.piperVoiceAria')}
+ data-testid="tts-voice-select"
+ value={piperVoiceIsPreset ? ttsVoice : '__custom__'}
+ disabled={isSavingProviders}
+ inputSize="sm"
+ onChange={e => {
+ const next = e.target.value;
+ if (next === '__custom__') return;
+ setTtsVoice(next);
+ void persistProviders({ tts_voice: next });
+ void installPiper({ voiceId: next }).catch(err =>
+ console.warn('[voice-install:piper] auto-install on voice change failed:', err)
+ );
+ }}
+ className="w-full">
+ {piperVoicePresets.map(v => (
+ <option key={v.id} value={v.id}>
+ {v.label}
+ </option>
+ ))}
+ <option value="__custom__">{t('voice.providers.customVoiceOption')}</option>
+ </NativeSelect>
+ {!piperVoiceIsPreset && (
+ <TextField
+ aria-label={t('voice.providers.customVoiceAria')}
+ data-testid="tts-voice-input"
+ mono
+ inputSize="sm"
+ value={ttsVoice}
+ placeholder={t('voice.providers.customVoicePlaceholder')}
disabled={isSavingProviders}
- onChange={e => onTtsProviderChange(e.target.value)}
- className="w-full">
- <option value="cloud">{t('voice.providers.cloudElevenLabsProxy')}</option>
- {/* Piper only shown when enabled */}
- {(ttsProvider === 'piper' || piperEnabledElsewhere) && (
- <option value="piper">{t('voice.providers.localPiper')}</option>
- )}
- {ttsExternalProviders.map(p => (
- <option key={p.slug} value={p.slug}>
- {p.label}
- </option>
- ))}
- </SettingsSelect>
- </label>
-
- <div className="flex items-center gap-2">
- <Button
- type="button"
- variant="secondary"
- size="xs"
- data-testid="test-tts-button"
- disabled={isTestingTts || !ttsProvider || ttsTestBlockedByInstall}
- title={ttsTestBlockedByInstall ? t('voice.providers.notInstalled') : undefined}
- onClick={async () => {
- setIsTestingTts(true);
- setTtsTestResult(null);
- try {
- // For ElevenLabs, include the voice ID so the test
- // actually synthesizes audio with the selected voice.
- let ttsTestProvider = ttsProvider || 'cloud';
- if (ttsProvider === 'elevenlabs' && elevenlabsVoiceId) {
- ttsTestProvider = `elevenlabs:${elevenlabsVoiceId}`;
- }
- const result = await testVoiceProvider('tts', ttsTestProvider);
- setTtsTestResult(result);
- } catch (err) {
- setTtsTestResult({
- ok: false,
- detail: err instanceof Error ? err.message : 'Test failed',
- });
- } finally {
- setIsTestingTts(false);
- }
- }}>
- {isTestingTts ? t('voice.modal.testing') : t('voice.routing.testTts')}
- </Button>
- {ttsTestResult && (
- <span
- className={`text-[11px] ${
- ttsTestResult.ok
- ? 'text-sage-600 dark:text-sage-300'
- : 'text-coral-600 dark:text-coral-300'
- }`}>
- {ttsTestResult.detail}
- </span>
- )}
- </div>
-
- {/* Piper voice picker — shown when Piper is selected */}
- {ttsProvider === 'piper' && (
- <label className="block space-y-1">
- <span className="text-xs font-medium text-content-muted dark:text-content-secondary">
- {t('voice.providers.piperVoice')}
- </span>
- <SettingsSelect
- aria-label={t('voice.providers.piperVoiceAria')}
- data-testid="tts-voice-select"
- value={piperVoicePresetIds.some(v => v === ttsVoice) ? ttsVoice : '__custom__'}
- disabled={isSavingProviders}
- onChange={e => {
- const next = e.target.value;
- if (next === '__custom__') return;
- setTtsVoice(next);
- void persistProviders({ tts_voice: next });
- void installPiper({ voiceId: next }).catch(err =>
+ onChange={e => setTtsVoice(e.target.value)}
+ onBlur={() => {
+ if (ttsVoice && ttsVoice !== voiceStatus?.tts_voice_id) {
+ void persistProviders({ tts_voice: ttsVoice });
+ void installPiper({ voiceId: ttsVoice }).catch(err =>
console.warn(
- '[voice-install:piper] auto-install on voice change failed:',
+ '[voice-install:piper] auto-install on custom voice failed:',
err
)
);
- }}
- className="w-full">
- {piperVoicePresets.map(v => (
- <option key={v.id} value={v.id}>
- {v.label}
- </option>
- ))}
- <option value="__custom__">{t('voice.providers.customVoiceOption')}</option>
- </SettingsSelect>
- {!piperVoicePresetIds.some(v => v === ttsVoice) && (
- <SettingsTextField
- aria-label={t('voice.providers.customVoiceAria')}
- data-testid="tts-voice-input"
- value={ttsVoice}
- placeholder={t('voice.providers.customVoicePlaceholder')}
- disabled={isSavingProviders}
- onChange={e => setTtsVoice(e.target.value)}
- onBlur={() => {
- if (ttsVoice && ttsVoice !== voiceStatus?.tts_voice_id) {
- void persistProviders({ tts_voice: ttsVoice });
- void installPiper({ voiceId: ttsVoice }).catch(err =>
- console.warn(
- '[voice-install:piper] auto-install on custom voice failed:',
- err
- )
- );
- }
- }}
- className="mt-1 w-full"
- />
- )}
- <p className="text-[11px] text-content-muted mt-0.5">
- {t('voice.providers.piperVoicesDesc')}
- </p>
- </label>
+ }
+ }}
+ className="w-full"
+ />
)}
+ </div>
+ }
+ />
+ )}
- {/* ElevenLabs voice picker — shown when ElevenLabs is selected for TTS */}
- {ttsProvider === 'elevenlabs' && (
- <label className="block space-y-1">
- <span className="text-xs font-medium text-content-muted dark:text-content-secondary">
- {t('voice.routing.elevenlabsVoice')}
- </span>
- <SettingsSelect
- aria-label={t('voice.routing.elevenlabsVoiceAria')}
- data-testid="elevenlabs-voice-select"
- value={
- isCuratedVoicePreset(elevenlabsVoiceId) ? elevenlabsVoiceId : '__custom__'
- }
- disabled={isSavingProviders}
- onChange={e => {
- const next = e.target.value;
- if (next === '__custom__') return;
- setElevenlabsVoiceId(next);
- }}
- className="w-full">
- {ELEVENLABS_VOICE_PRESETS.map(v => (
- <option key={v.id} value={v.id}>
- {v.label}
- </option>
- ))}
- <option value="__custom__">{t('voice.providers.customVoiceOption')}</option>
- </SettingsSelect>
- {!isCuratedVoicePreset(elevenlabsVoiceId) && (
- <SettingsTextField
- aria-label={t('voice.routing.elevenlabsVoiceIdAria')}
- data-testid="elevenlabs-voice-input"
- value={elevenlabsVoiceId}
- placeholder="JBFqnCBsd6RMkjVDRZzb"
- disabled={isSavingProviders}
- onChange={e => setElevenlabsVoiceId(e.target.value)}
- className="mt-1 w-full"
- />
- )}
- <p className="text-[11px] text-content-muted mt-0.5">
- {t('voice.routing.elevenlabsVoiceDesc')}
- </p>
- </label>
+ {/* ElevenLabs voice picker — shown when ElevenLabs is selected for TTS */}
+ {ttsProvider === 'elevenlabs' && (
+ <Field
+ label={t('voice.routing.elevenlabsVoice')}
+ description={t('voice.routing.elevenlabsVoiceDesc')}
+ control={
+ <div className="flex w-72 flex-col gap-2">
+ <NativeSelect
+ aria-label={t('voice.routing.elevenlabsVoiceAria')}
+ data-testid="elevenlabs-voice-select"
+ value={isCuratedVoicePreset(elevenlabsVoiceId) ? elevenlabsVoiceId : '__custom__'}
+ disabled={isSavingProviders}
+ inputSize="sm"
+ onChange={e => {
+ const next = e.target.value;
+ if (next === '__custom__') return;
+ setElevenlabsVoiceId(next);
+ }}
+ className="w-full">
+ {ELEVENLABS_VOICE_PRESETS.map(v => (
+ <option key={v.id} value={v.id}>
+ {v.label}
+ </option>
+ ))}
+ <option value="__custom__">{t('voice.providers.customVoiceOption')}</option>
+ </NativeSelect>
+ {!isCuratedVoicePreset(elevenlabsVoiceId) && (
+ <TextField
+ aria-label={t('voice.routing.elevenlabsVoiceIdAria')}
+ data-testid="elevenlabs-voice-input"
+ mono
+ inputSize="sm"
+ value={elevenlabsVoiceId}
+ placeholder="JBFqnCBsd6RMkjVDRZzb"
+ disabled={isSavingProviders}
+ onChange={e => setElevenlabsVoiceId(e.target.value)}
+ className="w-full"
+ />
)}
</div>
- </div>
- }
- />
- <div className="flex justify-end px-4 py-3 border-t border-line-subtle">
+ }
+ />
+ )}
+
+ <div className="flex items-center justify-end gap-3 px-4 py-3">
+ {hasRoutingChanges && (
+ <span className="text-xs text-content-muted">{t('voice.routing.unsaved')}</span>
+ )}
<Button
type="button"
variant="primary"
- size="xs"
+ size="sm"
data-testid="save-voice-routing"
disabled={!hasRoutingChanges || isSavingRouting}
onClick={() => void saveRouting()}>
{isSavingRouting ? t('common.loading') : t('voice.routing.save')}
</Button>
</div>
- </SettingsSection>
+ </Card>
);
};
diff --git a/app/src/components/settings/panels/ai/DefaultModelRow.tsx b/app/src/components/settings/panels/ai/DefaultModelRow.tsx
index a706e4a2e7..593a57cdfd 100644
--- a/app/src/components/settings/panels/ai/DefaultModelRow.tsx
+++ b/app/src/components/settings/panels/ai/DefaultModelRow.tsx
@@ -60,20 +60,20 @@ export const DefaultModelRow = ({
data-testid="default-model-change"
/>
- {pickerOpen && (
- <ProviderModelPickerDialog
- cloudProviders={[]}
- localModels={[]}
- ollamaRunning={false}
- claudeCodeEnabled={false}
- initial={{ source: { kind: 'managed' }, model: pinned ?? RECOMMENDED_DEFAULT_MODEL }}
- onClose={() => setPickerOpen(false)}
- onSelect={({ model }) => {
- setPickerOpen(false);
- void onChange(model);
- }}
- />
- )}
+ {pickerOpen && (
+ <ProviderModelPickerDialog
+ cloudProviders={[]}
+ localModels={[]}
+ ollamaRunning={false}
+ claudeCodeEnabled={false}
+ initial={{ source: { kind: 'managed' }, model: pinned ?? RECOMMENDED_DEFAULT_MODEL }}
+ onClose={() => setPickerOpen(false)}
+ onSelect={({ model }) => {
+ setPickerOpen(false);
+ void onChange(model);
+ }}
+ />
+ )}
</TableCell>
</TableRow>
);
diff --git a/app/src/components/settings/panels/ai/ProviderAuthSection.tsx b/app/src/components/settings/panels/ai/ProviderAuthSection.tsx
index 24a0e4d368..dd437eaf05 100644
--- a/app/src/components/settings/panels/ai/ProviderAuthSection.tsx
+++ b/app/src/components/settings/panels/ai/ProviderAuthSection.tsx
@@ -16,8 +16,8 @@
* internal dialog from the outside, so they keep a two-row band of their own
* whether connected or not.
*/
-import { useState } from 'react';
import { Plus } from 'lucide-react';
+import { useState } from 'react';
import { useT } from '../../../../lib/i18n/I18nContext';
import type { ProviderAuthError } from '../../../../services/api/aiSettingsApi';
diff --git a/app/src/components/settings/panels/ai/ProviderListRow.tsx b/app/src/components/settings/panels/ai/ProviderListRow.tsx
index add0cc047f..cf90d21f74 100644
--- a/app/src/components/settings/panels/ai/ProviderListRow.tsx
+++ b/app/src/components/settings/panels/ai/ProviderListRow.tsx
@@ -173,10 +173,7 @@ export const ProviderListRow = ({
}) => {
const { t } = useT();
return (
- <li
- data-slot="provider-row"
- data-testid={testId}
- className="flex items-center gap-3 px-4 py-3">
+ <li data-slot="provider-row" data-testid={testId} className="flex items-center gap-3 px-4 py-3">
<ProviderSwatch slug={slug} label={label} tone={tone} />
<div className="flex min-w-0 flex-1 flex-col gap-0.5">
@@ -184,11 +181,7 @@ export const ProviderListRow = ({
<span className="truncate text-sm font-semibold text-content">{label}</span>
{badge}
</div>
- <span
- className={cn(
- 'truncate text-xs text-content-muted',
- detailMono && 'font-mono'
- )}>
+ <span className={cn('truncate text-xs text-content-muted', detailMono && 'font-mono')}>
{detail}
</span>
</div>
diff --git a/app/src/components/settings/panels/ai/RouteButton.tsx b/app/src/components/settings/panels/ai/RouteButton.tsx
index 11126fa740..b1dd62f5a7 100644
--- a/app/src/components/settings/panels/ai/RouteButton.tsx
+++ b/app/src/components/settings/panels/ai/RouteButton.tsx
@@ -35,9 +35,7 @@ export const RouteButton = ({
) : null}
<span className="flex min-w-0 flex-1 flex-col">
<span className="truncate text-xs font-medium text-content">{provider}</span>
- <span className="truncate font-mono text-[11px] font-normal text-content-muted">
- {model}
- </span>
+ <span className="truncate font-mono text-[11px] font-normal text-content-muted">{model}</span>
</span>
<ChevronRight className="h-4 w-4 shrink-0 text-content-faint" aria-hidden />
</Button>
diff --git a/app/src/lib/i18n/en.ts b/app/src/lib/i18n/en.ts
index 1d982cfeb6..70895c6768 100644
--- a/app/src/lib/i18n/en.ts
+++ b/app/src/lib/i18n/en.ts
@@ -796,7 +796,7 @@ const en: TranslationMap = {
'connections.header.mcp': "Add MCP servers to extend your agent's tools.",
'connections.header.skills': 'Install and manage agent skills.',
'connections.header.meetings': 'Connect calendars and let your agent join calls.',
- 'connections.header.llm': 'Configure AI providers, local models, and the agent chat tester.',
+ 'connections.header.llm': 'Connect model providers and choose which model each task uses.',
'connections.header.embeddings': 'Choose the embedding model used for memory search.',
'connections.header.search': 'Configure web search for your agent.',
'connections.header.wallet': 'Your local wallet balance and recovery phrase.',
@@ -5375,6 +5375,9 @@ const en: TranslationMap = {
'settings.ai.providers.addCustomAction': 'Add a custom provider',
'settings.ai.providers.customDetail': 'Your own OpenAI-compatible endpoint',
'settings.ai.providers.groupConnected': 'Connected',
+ 'settings.ai.providers.connectedDesc':
+ 'Managed is always on as a fallback. Choose which provider each task uses on the Routing tab.',
+ 'settings.ai.providers.catalogTitle': 'Add a provider',
'settings.ai.providers.localDetail': 'Runs on this machine',
'settings.ai.localOllama': 'Local (Ollama)',
'settings.ai.modelLabel': 'Model',
@@ -5670,6 +5673,10 @@ const en: TranslationMap = {
'The model a managed chat turn runs on. Workloads below that stay on Managed use it.',
'settings.ai.routing.defaultModelUnset': 'Not set',
'settings.ai.routing.chatAndConversations': 'Chat and Conversations',
+ 'settings.ai.routing.columnTask': 'Task',
+ 'settings.ai.routing.columnRoute': 'Runs on',
+ 'settings.ai.routing.selectProvider': 'Select provider and model',
+ 'settings.ai.routing.chooseModel': 'Choose a model',
'settings.ai.routing.chatDesc':
'Models used during direct user interaction, replies, reasoning, agent loops, and coding help.',
'settings.ai.routing.backgroundTasks': 'Background Tasks',