Picking an effort level left the menu sitting open. You had to hit Escape or click away to get rid of it. The model picker closes itself on select, so the two menus behaved differently for no reason.
Base UI's Menu.RadioItem defaults closeOnClick to false, which is why. Turned it on for the trait rows.
This applies to every row in that menu, not just effort. It also holds Context window, Agent, Thinking, and Fast mode. Closing on effort but staying open on context window would be worse than either consistent option. Trade-off: setting two traits now takes two menu opens, same as the model picker.
Verified with typecheck, lint, and format check on @t3tools/web. Not run in the browser.
Made by Claude Opus 5 (1M context) in T3 Code.
Note
Low Risk
Small UX-only change to menu dismiss behavior in the composer; no auth, data, or API impact.
Overview
The traits composer menu now closes when you pick a value, matching the model picker and other radio menus that already use closeOnClick.
MenuRadioItem in TraitsPicker gets closeOnClick on every row: select traits (effort, context window, agent, etc.) and boolean On/Off traits (thinking, fast mode). Base UI radio items default to staying open; without this prop the menu stayed up until Escape or an outside click.
Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 8bfba4c0692e1b179aee765e982ea3d4b0d0316b. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).
Note
Adds closeOnClick to MenuRadioItem components in TraitsPicker.tsx so the menu closes on selection instead of remaining open.
Macroscope summarized 8bfba4c.
Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID:
995c1618-ccdd-4027-9ab3-b75daab18a49You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share