auto-claude: subtask-1-1 - Add adaptive thinking badge to thinking level label (#1782)

Import ADAPTIVE_THINKING_MODELS and Tooltip components, then add conditional
adaptive thinking badge with tooltip next to the thinking level label in the
phase configuration section, matching the pattern from AgentProfileSettings.tsx.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Andy
2026-02-11 12:23:36 +01:00
committed by GitHub
parent 5ac40f57c1
commit 25acf2826c
@@ -11,6 +11,7 @@ import { useState } from 'react';
import { useTranslation } from 'react-i18next';
import { Brain, Scale, Zap, Sliders, Sparkles, ChevronDown, ChevronUp, Pencil } from 'lucide-react';
import { Label } from './ui/label';
import { Tooltip, TooltipContent, TooltipTrigger } from './ui/tooltip';
import {
Select,
SelectContent,
@@ -23,7 +24,8 @@ import {
AVAILABLE_MODELS,
THINKING_LEVELS,
DEFAULT_PHASE_MODELS,
DEFAULT_PHASE_THINKING
DEFAULT_PHASE_THINKING,
ADAPTIVE_THINKING_MODELS
} from '../../shared/constants';
import type { ModelType, ThinkingLevel } from '../../shared/types';
import type { PhaseModelConfig, PhaseThinkingConfig } from '../../shared/types/settings';
@@ -294,7 +296,21 @@ export function AgentProfileSelector({
</Select>
</div>
<div className="space-y-1">
<Label className="text-[10px] text-muted-foreground">{t('agentProfile.thinking')}</Label>
<div className="flex items-center gap-1.5">
<Label className="text-[10px] text-muted-foreground">{t('agentProfile.thinking')}</Label>
{ADAPTIVE_THINKING_MODELS.includes(currentPhaseModels[phase]) && (
<Tooltip>
<TooltipTrigger asChild>
<span className="inline-flex items-center rounded bg-primary/10 px-1.5 py-0.5 text-[9px] font-medium text-primary cursor-help">
{t('agentProfile.adaptiveThinking.badge')}
</span>
</TooltipTrigger>
<TooltipContent side="top" className="max-w-xs">
<p className="text-xs">{t('agentProfile.adaptiveThinking.tooltip')}</p>
</TooltipContent>
</Tooltip>
)}
</div>
<Select
value={currentPhaseThinking[phase]}
onValueChange={(value) => handlePhaseThinkingChange(phase, value as ThinkingLevel)}