diff --git a/src/components/chat/view/subcomponents/ProviderSelectionEmptyState.tsx b/src/components/chat/view/subcomponents/ProviderSelectionEmptyState.tsx index 75e603d1..78df42d6 100644 --- a/src/components/chat/view/subcomponents/ProviderSelectionEmptyState.tsx +++ b/src/components/chat/view/subcomponents/ProviderSelectionEmptyState.tsx @@ -46,56 +46,12 @@ type ProviderSelectionEmptyStateProps = { setInput: React.Dispatch>; }; -type ProviderDef = { - id: LLMProvider; - name: string; - infoKey: string; - accent: string; - ring: string; - check: string; -}; - type ProviderGroup = { id: LLMProvider; name: string; models: { value: string; label: string }[]; }; -const PROVIDERS: ProviderDef[] = [ - { - id: "claude", - name: "Claude Code", - infoKey: "providerSelection.providerInfo.anthropic", - accent: "border-primary", - ring: "ring-primary/15", - check: "bg-primary text-primary-foreground", - }, - { - id: "cursor", - name: "Cursor", - infoKey: "providerSelection.providerInfo.cursorEditor", - accent: "border-violet-500 dark:border-violet-400", - ring: "ring-violet-500/15", - check: "bg-violet-500 text-white", - }, - { - id: "codex", - name: "Codex", - infoKey: "providerSelection.providerInfo.openai", - accent: "border-emerald-600 dark:border-emerald-400", - ring: "ring-emerald-600/15", - check: "bg-emerald-600 dark:bg-emerald-500 text-white", - }, - { - id: "gemini", - name: "Gemini", - infoKey: "providerSelection.providerInfo.google", - accent: "border-blue-500 dark:border-blue-400", - ring: "ring-blue-500/15", - check: "bg-blue-500 text-white", - }, -]; - const PROVIDER_GROUPS: ProviderGroup[] = [ { id: "claude", name: "Anthropic", models: CLAUDE_MODELS.OPTIONS }, { id: "cursor", name: "Cursor", models: CURSOR_MODELS.OPTIONS }, @@ -153,11 +109,6 @@ export default function ProviderSelectionEmptyState({ const { isWindowsServer } = useServerPlatform(); const [dialogOpen, setDialogOpen] = useState(false); - const visibleProviders = useMemo( - () => (isWindowsServer ? PROVIDERS.filter((p) => p.id !== "cursor") : PROVIDERS), - [isWindowsServer], - ); - const visibleProviderGroups = useMemo( () => (isWindowsServer ? PROVIDER_GROUPS.filter((p) => p.id !== "cursor") : PROVIDER_GROUPS), [isWindowsServer], @@ -190,15 +141,6 @@ export default function ProviderSelectionEmptyState({ return found?.label || currentModel; }, [provider, currentModel]); - const selectProvider = useCallback( - (next: LLMProvider) => { - setProvider(next); - localStorage.setItem("selected-provider", next); - setTimeout(() => textareaRef.current?.focus(), 100); - }, - [setProvider, textareaRef], - ); - const setModelForProvider = useCallback( (providerId: LLMProvider, modelValue: string) => { if (providerId === "claude") { @@ -242,50 +184,6 @@ export default function ProviderSelectionEmptyState({

-
= 4 ? "sm:grid-cols-4" : "sm:grid-cols-3"}`} - > - {visibleProviders.map((p) => { - const active = provider === p.id; - return ( - - ); - })} -
-