@devries-cameron20 / t3code-1 / commits / 2b15ba077d
Fork 0

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

fix(web): model settings show "No reasoning" instead of labeling every model (#27891)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

Theo Browne committed Oct 30, 2026 at 19:02 UTC 2b15ba077d8ee756c01dbf44d959068ef03e371d
1 file changed +27 -12
apps/web/src/components/settings/ProviderModelsSection.tsx
+27 -12
@@ -5,6 +5,7 @@ import {
5 type ProviderInstanceId,
6 type ServerProviderModel,
7 } from "@t3tools/contracts";
8 +import { REASONING_SELECT_DESCRIPTOR_IDS } from "@t3tools/client-runtime/model-traits";
9 import { type CustomModelDefinition, normalizeCustomModelSlug } from "@t3tools/shared/model";
10
11 import { useStableCallback } from "../../hooks/useStableCallback";
@@ -27,7 +28,21 @@ const CUSTOM_MODEL_PLACEHOLDER_BY_KIND: Partial<Record<ProviderDriverKind, strin
28
29 const FILTER_THRESHOLD = 8;
30
30 -function describeModelCapabilities(model: ServerProviderModel): string[] {
31 +const PROVIDER_ALIAS_SLUGS = new Set(["default", "auto"]);
32 +
33 +function hasReasoningControl(model: ServerProviderModel): boolean {
34 + return (model.capabilities?.optionDescriptors ?? []).some((descriptor) =>
35 + REASONING_SELECT_DESCRIPTOR_IDS.has(descriptor.id),
36 + );
37 +}
38 +
39 +// Reasoning is the norm, so only its absence is labeled, and only when other models have it.
40 +// Custom and null capabilities are fallbacks or user-written, not discovered, so they prove nothing.
41 +// Alias slugs ("default", Cursor's "auto") defer to the provider's own model choice, so reasoning is unknown.
42 +function describeModelCapabilities(
43 + model: ServerProviderModel,
44 + flagMissingReasoning: boolean,
45 +): string[] {
46 const descriptors = model.capabilities?.optionDescriptors ?? [];
47 const labels: string[] = [];
48 const hasFastMode = descriptors.some(
@@ -38,18 +53,14 @@ function describeModelCapabilities(model: ServerProviderModel): string[] {
53 descriptor.options.some((option) => option.id === "fast" || option.label === "Fast")),
54 );
55 if (hasFastMode) labels.push("Fast mode");
41 - if (descriptors.some((descriptor) => descriptor.id === "thinking")) labels.push("Thinking");
56 if (
43 - descriptors.some(
44 - (descriptor) =>
45 - descriptor.type === "select" &&
46 - (descriptor.id === "reasoningEffort" ||
47 - descriptor.id === "effort" ||
48 - descriptor.id === "reasoning" ||
49 - descriptor.id === "variant"),
50 - )
57 + flagMissingReasoning &&
58 + !model.isCustom &&
59 + model.capabilities &&
60 + !PROVIDER_ALIAS_SLUGS.has(model.slug) &&
61 + !hasReasoningControl(model)
62 ) {
52 - labels.push("Reasoning");
63 + labels.push("No reasoning");
64 }
65 return labels;
66 }
@@ -144,6 +155,7 @@ export function ProviderModelsSection({
155 const hiddenCount = displayModels.filter(
156 (model) => !model.isCustom && hiddenModelSet.has(model.slug),
157 ).length;
158 + const flagMissingReasoning = models.some(hasReasoningControl);
159 const showFilter = models.length > FILTER_THRESHOLD;
160 const normalizedFilter = filter.trim().toLowerCase();
161 const isFiltering = showFilter && normalizedFilter.length > 0;
@@ -278,6 +290,7 @@ export function ProviderModelsSection({
290 canMoveUp={!isFiltering && previousModel !== undefined && groupOf(previousModel) === group}
291 canMoveDown={!isFiltering && nextModel !== undefined && groupOf(nextModel) === group}
292 isFiltering={isFiltering}
293 + flagMissingReasoning={flagMissingReasoning}
294 canWritePreferences={canWritePreferences}
295 canManageCustomModels={canManageCustomModels}
296 {...rowHandlers}
@@ -437,6 +450,7 @@ function ProviderModelRow({
450 canMoveUp,
451 canMoveDown,
452 isFiltering,
453 + flagMissingReasoning,
454 canWritePreferences,
455 canManageCustomModels,
456 onToggleFavorite,
@@ -451,6 +465,7 @@ function ProviderModelRow({
465 readonly canMoveUp: boolean;
466 readonly canMoveDown: boolean;
467 readonly isFiltering: boolean;
468 + readonly flagMissingReasoning: boolean;
469 readonly canWritePreferences: boolean;
470 readonly canManageCustomModels: boolean;
471 readonly onToggleFavorite: (slug: string) => void;
@@ -459,7 +474,7 @@ function ProviderModelRow({
474 readonly onToggleEdit: (slug: string) => void;
475 readonly onRemove: (slug: string) => void;
476 }) {
462 - const capLabels = describeModelCapabilities(model);
477 + const capLabels = describeModelCapabilities(model, flagMissingReasoning);
478 const nameClassName = cn("text-xs", isHidden ? "text-muted-foreground" : "text-foreground/90");
479 const pickerTooltip = model.isCustom
480 ? "Custom models are always shown in the picker"