The best way to control Claude Code, Codex and more from any computer or phone
[fix/feat:ui] Show default option badge (#3232)
Co-authored-by: Julius Marminge <julius0216@outlook.com>
ss committed
Jul 18, 2026 at 13:21 UTC
c0e161af069ec501a44d72c4e59d38d3cf85706d
1 file changed
+18
-1
apps/web/src/components/chat/TraitsPicker.tsx
+18
-1
@@ -30,6 +30,7 @@ import {
30
import { useComposerDraftStore, DraftId } from "../../composerDraftStore";
31
import { getProviderModelCapabilities } from "../../providerModels";
32
import { cn } from "~/lib/utils";
33
+import { Badge } from "../ui/badge";
34
35
type ProviderOptions = ReadonlyArray<ProviderOptionSelection>;
36
@@ -46,6 +47,17 @@ type TraitsPersistence =
47
48
const ULTRATHINK_PROMPT_PREFIX = "Ultrathink:\n";
49
50
+function DefaultBadge() {
51
+ return (
52
+ <Badge
53
+ variant="outline"
54
+ className="inline-flex h-4 w-fit min-w-0 items-center justify-center gap-0 border-border/70 bg-muted/60 px-1.5 py-0 font-semibold text-[10px] text-muted-foreground leading-none sm:h-4"
55
+ >
56
+ Default
57
+ </Badge>
58
+ );
59
+}
60
+
61
function replaceDescriptorCurrentValue(
62
descriptors: ReadonlyArray<ProviderOptionDescriptor>,
63
descriptorId: string,
@@ -313,7 +325,12 @@ export const TraitsMenuContent = memo(function TraitsMenuContentImpl({
325
disabled={ultrathinkInBodyText && descriptor.id === primarySelectDescriptor?.id}
326
>
327
{option.label}
316
- {option.isDefault ? " (default)" : ""}
328
+ {option.isDefault ? (
329
+ <>
330
+ {" "}
331
+ <DefaultBadge />
332
+ </>
333
+ ) : null}
334
</MenuRadioItem>
335
))}
336
</MenuRadioGroup>