The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
feat(settings): move managed routing alert into AIPanel
Steven Enamakel8d4fd6d496e2
diff --git a/app/src/components/settings/panels/AIPanel.tsx b/app/src/components/settings/panels/AIPanel.tsxindex 03aef23346..be7a112cd6 100644--- a/app/src/components/settings/panels/AIPanel.tsx+++ b/app/src/components/settings/panels/AIPanel.tsx@@ -19,6 +19,7 @@ import {} from '../../../services/api/aiSettingsApi';import { connectOpenRouterViaOAuth } from '../../../utils/openrouterOAuth';import PanelPage from '../../layout/PanelPage';+import Alert from '../../ui/Alert';import Button from '../../ui/Button';import Card from '../../ui/Card';import { ModalShell } from '../../ui/ModalShell';@@ -236,6 +237,12 @@ const AIPanel = ({onSelectCustom={() => setRoutingEditorMode('custom')}/>+ {effectiveRoutingMode === 'managed' ? (+ <Card className="w-full">+ <Alert variant="success">{t('settings.ai.routing.managedMsg')}</Alert>+ </Card>+ ) : null}+{effectiveRoutingMode === 'own' ? (<GlobalOwnModelSelectorcurrent={sharedModelRef}@@ -270,17 +277,10 @@ const AIPanel = ({) : null}{effectiveRoutingMode === 'custom' ? (- <>- <section className="space-y-1">- <h2 className="text-lg font-semibold tracking-tight text-content">- {t('settings.ai.routing.advanced')}- </h2>- <p className="text-sm text-content-muted">- {t('settings.ai.routing.customDesc')}- </p>- </section>-- <Card className="w-full">+ <Card+ title={t('settings.ai.routing.advanced')}+ description={t('settings.ai.routing.customDesc')}+ className="w-full"><WorkloadTabletitle={t('settings.ai.routing.chatAndConversations')}description={t('settings.ai.routing.chatDesc')}>@@ -308,8 +308,7 @@ const AIPanel = ({/>))}</WorkloadTable>- </Card>- </>+ </Card>) : null}</div>{isDirty && (diff --git a/app/src/components/settings/panels/ai/RoutingModeCards.tsx b/app/src/components/settings/panels/ai/RoutingModeCards.tsxindex 0b99164c69..c8a112b2b3 100644--- a/app/src/components/settings/panels/ai/RoutingModeCards.tsx+++ b/app/src/components/settings/panels/ai/RoutingModeCards.tsx@@ -5,7 +5,6 @@*/import { cn } from '../../../../lib/cn';import { useT } from '../../../../lib/i18n/I18nContext';-import Alert from '../../../ui/Alert';import Card from '../../../ui/Card';import Label from '../../../ui/Label';import { RadioGroupItem, RadioGroupRoot } from '../../../ui/RadioGroup';@@ -83,9 +82,6 @@ export const RoutingModeCards = ({/></RadioGroupRoot>- {effectiveRoutingMode === 'managed' ? (- <Alert variant="success">{t('settings.ai.routing.managedMsg')}</Alert>- ) : null}</div></Card>);