fix(web): keep traits menu open after selection #6346
main fromrefs/pull/6346/head·opened View on GitHubWhat Changed#
- Keep reasoning effort, context window, service tier, and boolean trait selections open after each choice.
- Preserve the menu’s existing outside-click and Escape dismissal behavior.
Why#
These options are often adjusted together. Closing after every choice forces users to repeatedly reopen the same configuration menu.
UI Changes#
Before: the traits menu closed after each selection.
After: each selection applies immediately while the menu stays open for further changes, then closes when dismissed.
No visual styling changed. Screenshots and video were not captured for this behavior-only change.
Verification#
vp test run --project unit src/components/chat/TraitsPicker.test.ts(7 passed)vp fmt apps/web/src/components/chat/TraitsPicker.tsx --checkvp lint apps/web/src/components/chat/TraitsPicker.tsxvp run --filter @t3tools/web typecheck
Checklist#
- This PR is small and focused
- I explained what changed and why
- I included before/after screenshots for any UI changes (behavior only; no visual styling change)
- I included a video for animation/interaction changes (not captured)
Made with gpt-5.6-sol in the Codex harness.
Note
Low Risk Small interaction-only change in the composer traits menu with no auth, data, or API impact.
Overview
Traits picker no longer closes after each choice. Select traits (reasoning effort, context window, service tier, etc.) and boolean On/Off items now use closeOnClick={false} on MenuRadioItem, so selections apply immediately while the menu stays open for further tweaks.
Dismissal is unchanged: outside click and Escape still close the menu.
Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit de383fe8f1048d9f9021d36e210d4ca088716ebc. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).Note
Keep traits menu open after selecting or toggling a trait in TraitsMenuContent#
Adds closeOnClick={false} to MenuRadioItem elements in TraitsPicker.tsx so the menu stays open when selecting a trait option or toggling a boolean trait on/off. Previously, each selection dismissed the menu, requiring users to reopen it to configure additional traits.
Summary by CodeRabbit#
- Bug Fixes
- The traits menu now remains open when selecting trait options, making it easier to configure related traits without reopening the menu.
- 1
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XS
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes
Approvability#
Verdict: Approved de383fe
Minor UI behavior change that keeps the traits menu open after selection. The change is limited to two
You can customize Macroscope's approvability policy. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).closeOnClick={false}prop modifications in a single component with no impact beyond menu interaction behavior.Codex Review Summary#
This comment shows the latest Codex review activity on this pull request.
Review Status Commit Review trigger 📝 Code Review ✅ Completed 2026-09-15T21:41:15.751315Z 76f7f59New commits ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review" or "@codex security review".
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
Note
This comment is posted by Julius' dot
Closing under the verification requirement. TraitsPicker now keeps the menu open after selection, but the description explicitly says screenshots and interaction video were not captured. Add before/after screenshots and a short recording showing selection, outside-click dismissal, and Escape, then request reconsideration.
juliusmarminge closed this
Sign in to join this conversation.
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Advanced
Run ID:
848cf06c-d99f-4284-a77b-f94f9bf22f22📥 Commits
Reviewing files that changed from the base of the PR and between 719a76ca1dbf5490f1aa33ffb9966301e02be9a9 and 76f7f59b0bfdf92cc1e66c33d78442c1ef246d10.
📒 Files selected for processing (1)
apps/web/src/components/chat/TraitsPicker.tsxIncluded review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.
📝 Walkthrough
Walkthrough#
The traits picker keeps its menu open after users select either select-type or boolean trait options.
Changes#
Traits menu behavior
apps/web/src/components/chat/TraitsPicker.tsxMenuRadioItemcomponents now usecloseOnClick={false}.Priority: ⬇️ Low
Estimated code review effort: 1 (Trivial) | ~5 minutes
Change: Bug fix
Suggested reviewers:
juliusmarmingeMerge Risk: ⚪ Minimal · up to
76f7fThe menu behavior change is localized and ready to merge.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
✨ Finishing Touches
🧪 Generate unit tests (beta)
Comment `@coderabbitai help` to get the list of available commands.