fix(settings): limit model provider agent types and adjust card layout

Restrict supported agent types to Claude Code, Codex CLI, and Gemini CLI. Reposition agent type badges to be vertically centered beside the name and API URL block in provider cards.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
xintaofei
2026-04-07 11:20:12 +08:00
parent faf8ff0731
commit 8362bdf2c7
4 changed files with 24 additions and 12 deletions

View File

@@ -229,6 +229,12 @@ export const ALL_AGENT_TYPES: AgentType[] = [
"cline",
]
export const MODEL_PROVIDER_AGENT_TYPES: AgentType[] = [
"claude_code",
"codex",
"gemini",
]
export const AGENT_LABELS: Record<AgentType, string> = {
claude_code: "Claude Code",
codex: "Codex",