The best way to control Claude Code, Codex and more from any computer or phone
fix(web): trait menu closes after you pick a level (#5879)
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Theo Browne committed
Aug 9, 2026 at 23:22 UTC
d43210050b97d57d7a4e76df30624b89108102d9
1 file changed
+4
-1
apps/web/src/components/chat/TraitsPicker.tsx
+4
-1
@@ -323,6 +323,9 @@ export const TraitsMenuContent = memo(function TraitsMenuContentImpl({
323
key={option.id}
324
value={option.id}
325
hideIndicator
326
+ // Base UI keeps radio menus open by default. Close on pick so
327
+ // the traits menu behaves like the model picker.
328
+ closeOnClick
329
disabled={ultrathinkInBodyText && descriptor.id === primarySelectDescriptor?.id}
330
>
331
<span className="flex w-full min-w-0 items-center justify-between gap-3">
@@ -362,7 +365,7 @@ export const TraitsMenuContent = memo(function TraitsMenuContentImpl({
365
}}
366
>
367
{(["on", "off"] as const).map((value) => (
365
- <MenuRadioItem key={value} value={value} hideIndicator>
368
+ <MenuRadioItem key={value} value={value} hideIndicator closeOnClick>
369
<span className="flex w-full min-w-0 items-center justify-between gap-3">
370
<span>{value === "on" ? "On" : "Off"}</span>
371
</span>