| ... | ... | @@ -145,7 +145,6 @@ import { |
| 145 | 145 | XIcon, |
| 146 | 146 | CopyIcon, |
| 147 | 147 | CheckIcon, |
| 148 | | ZapIcon, |
| 149 | 148 | } from "lucide-react"; |
| 150 | 149 | import { Button } from "./ui/button"; |
| 151 | 150 | import { Input } from "./ui/input"; |
| ... | ... | @@ -205,7 +204,6 @@ import { readNativeApi } from "~/nativeApi"; |
| 205 | 204 | import { |
| 206 | 205 | getAppModelOptions, |
| 207 | 206 | resolveAppModelSelection, |
| 208 | | shouldShowFastTierIcon, |
| 209 | 207 | useAppSettings, |
| 210 | 208 | } from "../appSettings"; |
| 211 | 209 | import { |
| ... | ... | @@ -408,7 +406,6 @@ type ComposerCommandItem = |
| 408 | 406 | model: ModelSlug; |
| 409 | 407 | label: string; |
| 410 | 408 | description: string; |
| 411 | | showFastBadge: boolean; |
| 412 | 409 | }; |
| 413 | 410 | |
| 414 | 411 | type SendPhase = "idle" | "preparing-worktree" | "sending-turn"; |
| ... | ... | @@ -519,9 +516,6 @@ const ComposerCommandMenuItem = memo(function ComposerCommandMenuItem(props: { |
| 519 | 516 | </Badge> |
| 520 | 517 | ) : null} |
| 521 | 518 | <span className="flex min-w-0 items-center gap-1.5 truncate"> |
| 522 | | {props.item.type === "model" && props.item.showFastBadge ? ( |
| 523 | | <ZapIcon className="size-3.5 shrink-0 text-amber-500" /> |
| 524 | | ) : null} |
| 525 | 519 | <span className="truncate">{props.item.label}</span> |
| 526 | 520 | </span> |
| 527 | 521 | <span className="truncate text-muted-foreground/70 text-xs">{props.item.description}</span> |
| ... | ... | @@ -1250,10 +1244,8 @@ export default function ChatView({ threadId }: ChatViewProps) { |
| 1250 | 1244 | model: slug, |
| 1251 | 1245 | label: name, |
| 1252 | 1246 | description: `${providerLabel} · ${slug}`, |
| 1253 | | showFastBadge: |
| 1254 | | provider === "codex" && shouldShowFastTierIcon(slug, selectedCodexFastModeEnabled), |
| 1255 | 1247 | })); |
| 1256 | | }, [composerTrigger, searchableModelOptions, selectedCodexFastModeEnabled, workspaceEntries]); |
| 1248 | }, [composerTrigger, searchableModelOptions, workspaceEntries]); |
| 1257 | 1249 | const composerMenuOpen = Boolean(composerTrigger); |
| 1258 | 1250 | const activeComposerMenuItem = useMemo( |
| 1259 | 1251 | () => |
| ... | ... | @@ -3695,7 +3687,6 @@ export default function ChatView({ threadId }: ChatViewProps) { |
| 3695 | 3687 | model={selectedModelForPickerWithCustomFallback} |
| 3696 | 3688 | lockedProvider={lockedProvider} |
| 3697 | 3689 | modelOptionsByProvider={modelOptionsByProvider} |
| 3698 | | fastModeEnabled={selectedCodexFastModeEnabled} |
| 3699 | 3690 | onProviderModelChange={onProviderModelSelect} |
| 3700 | 3691 | /> |
| 3701 | 3692 | |
| ... | ... | @@ -5543,7 +5534,6 @@ const ProviderModelPicker = memo(function ProviderModelPicker(props: { |
| 5543 | 5534 | model: ModelSlug; |
| 5544 | 5535 | lockedProvider: ProviderKind | null; |
| 5545 | 5536 | modelOptionsByProvider: Record<ProviderKind, ReadonlyArray<{ slug: string; name: string }>>; |
| 5546 | | fastModeEnabled: boolean; |
| 5547 | 5537 | disabled?: boolean; |
| 5548 | 5538 | onProviderModelChange: (provider: ProviderKind, model: ModelSlug) => void; |
| 5549 | 5539 | }) { |
| ... | ... | @@ -5573,12 +5563,9 @@ const ProviderModelPicker = memo(function ProviderModelPicker(props: { |
| 5573 | 5563 | disabled={props.disabled} |
| 5574 | 5564 | /> |
| 5575 | 5565 | } |
| 5576 | | > |
| 5566 | > |
| 5577 | 5567 | <span className="flex min-w-0 items-center gap-2"> |
| 5578 | 5568 | <ProviderIcon aria-hidden="true" className="size-4 shrink-0 text-muted-foreground/70" /> |
| 5579 | | {props.provider === "codex" && shouldShowFastTierIcon(props.model, props.fastModeEnabled) ? ( |
| 5580 | | <ZapIcon className="size-3.5 shrink-0 text-amber-500" /> |
| 5581 | | ) : null} |
| 5582 | 5569 | <span className="truncate">{selectedModelLabel}</span> |
| 5583 | 5570 | <ChevronDownIcon aria-hidden="true" className="size-3 opacity-60" /> |
| 5584 | 5571 | </span> |
| ... | ... | @@ -5621,10 +5608,6 @@ const ProviderModelPicker = memo(function ProviderModelPicker(props: { |
| 5621 | 5608 | value={modelOption.slug} |
| 5622 | 5609 | onClick={() => setIsMenuOpen(false)} |
| 5623 | 5610 | > |
| 5624 | | {option.value === "codex" && |
| 5625 | | shouldShowFastTierIcon(modelOption.slug, props.fastModeEnabled) ? ( |
| 5626 | | <ZapIcon className="size-3.5 shrink-0 text-amber-500" /> |
| 5627 | | ) : null} |
| 5628 | 5611 | {modelOption.name} |
| 5629 | 5612 | </MenuRadioItem> |
| 5630 | 5613 | ))} |