@devries-cameron20 / t3code-1 / commits / 081a6dacdb
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Remove fast-tier icons from model selection UI

- delete `shouldShowFastTierIcon` and its test - remove Zap icon badges from slash model commands and provider model picker - simplify related ChatView props and memo dependencies

Julius Marminge committed Mar 9, 2026 at 09:29 UTC 081a6dacdbb623da0b560360384d58cb95a484e5
3 files changed +2 -41
apps/web/src/appSettings.test.ts
-9
@@ -4,7 +4,6 @@ import {
4 getAppModelOptions,
5 getSlashModelOptions,
6 normalizeCustomModelSlugs,
7 - shouldShowFastTierIcon,
7 resolveAppModelSelection,
8 } from "./appSettings";
9
@@ -83,11 +82,3 @@ describe("getSlashModelOptions", () => {
82 expect(options.map((option) => option.slug)).toEqual(["openai/gpt-oss-120b"]);
83 });
84 });
86 -
87 -describe("shouldShowFastTierIcon", () => {
88 - it("shows the fast-tier icon only for gpt-5.4 when fast mode is enabled", () => {
89 - expect(shouldShowFastTierIcon("gpt-5.4", true)).toBe(true);
90 - expect(shouldShowFastTierIcon("gpt-5.4", false)).toBe(false);
91 - expect(shouldShowFastTierIcon("gpt-5.3-codex", true)).toBe(false);
92 - });
93 -});
apps/web/src/appSettings.ts
-13
@@ -6,7 +6,6 @@ import { getDefaultModel, getModelOptions, normalizeModelSlug } from "@t3tools/s
6 const APP_SETTINGS_STORAGE_KEY = "t3code:app-settings:v1";
7 const MAX_CUSTOM_MODEL_COUNT = 32;
8 export const MAX_CUSTOM_MODEL_LENGTH = 256;
9 -const MODELS_WITH_FAST_SUPPORT = new Set(["gpt-5.4"]);
9 const BUILT_IN_MODEL_SLUGS_BY_PROVIDER: Record<ProviderKind, ReadonlySet<string>> = {
10 codex: new Set(getModelOptions("codex").map((option) => option.slug)),
11 };
@@ -33,18 +32,6 @@ export interface AppModelOption {
32 isCustom: boolean;
33 }
34
36 -export function shouldShowFastTierIcon(
37 - model: string | null | undefined,
38 - fastModeEnabled: boolean,
39 -): boolean {
40 - const normalizedModel = normalizeModelSlug(model);
41 - return (
42 - fastModeEnabled &&
43 - normalizedModel !== null &&
44 - MODELS_WITH_FAST_SUPPORT.has(normalizedModel)
45 - );
46 -}
47 -
35 const DEFAULT_APP_SETTINGS = AppSettingsSchema.makeUnsafe({});
36
37 let listeners: Array<() => void> = [];
apps/web/src/components/ChatView.tsx
+2 -19
@@ -145,7 +145,6 @@ import {
145 XIcon,
146 CopyIcon,
147 CheckIcon,
148 - ZapIcon,
148 } from "lucide-react";
149 import { Button } from "./ui/button";
150 import { Input } from "./ui/input";
@@ -205,7 +204,6 @@ import { readNativeApi } from "~/nativeApi";
204 import {
205 getAppModelOptions,
206 resolveAppModelSelection,
208 - shouldShowFastTierIcon,
207 useAppSettings,
208 } from "../appSettings";
209 import {
@@ -408,7 +406,6 @@ type ComposerCommandItem =
406 model: ModelSlug;
407 label: string;
408 description: string;
411 - showFastBadge: boolean;
409 };
410
411 type SendPhase = "idle" | "preparing-worktree" | "sending-turn";
@@ -519,9 +516,6 @@ const ComposerCommandMenuItem = memo(function ComposerCommandMenuItem(props: {
516 </Badge>
517 ) : null}
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}
519 <span className="truncate">{props.item.label}</span>
520 </span>
521 <span className="truncate text-muted-foreground/70 text-xs">{props.item.description}</span>
@@ -1250,10 +1244,8 @@ export default function ChatView({ threadId }: ChatViewProps) {
1244 model: slug,
1245 label: name,
1246 description: `${providerLabel} · ${slug}`,
1253 - showFastBadge:
1254 - provider === "codex" && shouldShowFastTierIcon(slug, selectedCodexFastModeEnabled),
1247 }));
1256 - }, [composerTrigger, searchableModelOptions, selectedCodexFastModeEnabled, workspaceEntries]);
1248 + }, [composerTrigger, searchableModelOptions, workspaceEntries]);
1249 const composerMenuOpen = Boolean(composerTrigger);
1250 const activeComposerMenuItem = useMemo(
1251 () =>
@@ -3695,7 +3687,6 @@ export default function ChatView({ threadId }: ChatViewProps) {
3687 model={selectedModelForPickerWithCustomFallback}
3688 lockedProvider={lockedProvider}
3689 modelOptionsByProvider={modelOptionsByProvider}
3698 - fastModeEnabled={selectedCodexFastModeEnabled}
3690 onProviderModelChange={onProviderModelSelect}
3691 />
3692
@@ -5543,7 +5534,6 @@ const ProviderModelPicker = memo(function ProviderModelPicker(props: {
5534 model: ModelSlug;
5535 lockedProvider: ProviderKind | null;
5536 modelOptionsByProvider: Record<ProviderKind, ReadonlyArray<{ slug: string; name: string }>>;
5546 - fastModeEnabled: boolean;
5537 disabled?: boolean;
5538 onProviderModelChange: (provider: ProviderKind, model: ModelSlug) => void;
5539 }) {
@@ -5573,12 +5563,9 @@ const ProviderModelPicker = memo(function ProviderModelPicker(props: {
5563 disabled={props.disabled}
5564 />
5565 }
5576 - >
5566 + >
5567 <span className="flex min-w-0 items-center gap-2">
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}
5569 <span className="truncate">{selectedModelLabel}</span>
5570 <ChevronDownIcon aria-hidden="true" className="size-3 opacity-60" />
5571 </span>
@@ -5621,10 +5608,6 @@ const ProviderModelPicker = memo(function ProviderModelPicker(props: {
5608 value={modelOption.slug}
5609 onClick={() => setIsMenuOpen(false)}
5610 >
5624 - {option.value === "codex" &&
5625 - shouldShowFastTierIcon(modelOption.slug, props.fastModeEnabled) ? (
5626 - <ZapIcon className="size-3.5 shrink-0 text-amber-500" />
5627 - ) : null}
5611 {modelOption.name}
5612 </MenuRadioItem>
5613 ))}