feat: implement platform-specific provider visibility for cursor agent

This commit is contained in:
Haileyesus
2026-04-16 23:21:21 +03:00
parent d979c315cd
commit 1a6eb57043
8 changed files with 113 additions and 11 deletions

View File

@@ -3,8 +3,6 @@ import SessionProviderLogo from '../../../../../llm-logo-provider/SessionProvide
import type { AgentProvider } from '../../../../types/types';
import type { AgentSelectorSectionProps } from '../types';
const AGENT_PROVIDERS: AgentProvider[] = ['claude', 'cursor', 'codex', 'gemini'];
const AGENT_NAMES: Record<AgentProvider, string> = {
claude: 'Claude',
cursor: 'Cursor',
@@ -13,6 +11,7 @@ const AGENT_NAMES: Record<AgentProvider, string> = {
};
export default function AgentSelectorSection({
agents,
selectedAgent,
onSelectAgent,
agentContextById,
@@ -20,7 +19,7 @@ export default function AgentSelectorSection({
return (
<div className="flex-shrink-0 border-b border-border px-3 py-2 md:px-4 md:py-3">
<PillBar className="w-full md:w-auto">
{AGENT_PROVIDERS.map((agent) => {
{agents.map((agent) => {
const dotColor =
agent === 'claude' ? 'bg-blue-500' :
agent === 'cursor' ? 'bg-purple-500' :