Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): keep traits menu open after selection #6346

ClosedSergeSerb2(GitHub profile, opens in a new tab)wants to merge 2 commits intomain fromrefs/pull/6346/headopened View on GitHub

What 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 --check
  • vp lint apps/web/src/components/chat/TraitsPicker.tsx
  • vp 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.

Macroscope summarized de383fe.

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. coderabbitai[bot](GitHub profile, opens in a new tab)commented
      Review Change StackReview Change Stack

      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.tsx

      Included 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

      Layer / File(s)Summary
      Keep menu open after trait selection
      apps/web/src/components/chat/TraitsPicker.tsx
      Select and boolean MenuRadioItem components now use closeOnClick={false}.

      Priority: ⬇️ Low

      Estimated code review effort: 1 (Trivial) | ~5 minutes

      Change: Bug fix

      Suggested reviewers: juliusmarminge

      Merge Risk: ⚪ Minimal · up to 76f7f

      The menu behavior change is localized and ready to merge.

      🚥 Pre-merge checks | ✅ 5
      ✅ Passed checks (5 passed)
      Check nameStatusExplanation
      Description check✅ PassedThe description explains what changed, why it changed, the UI behavior before and after, verification steps, and checklist status. It documents why screenshots and video were not included for this beh…
      Title check✅ PassedThe title is concise, specific, and accurately describes the primary change: keeping the traits menu open after selection.
      Docstring Coverage✅ PassedNo functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
      Linked Issues check✅ PassedCheck skipped because no linked issues were found for this pull request.
      Out of Scope Changes check✅ PassedCheck skipped because no linked issues were found for this pull request.
      ✨ Finishing Touches
      🧪 Generate unit tests (beta)
      • Create PR with unit tests

      Comment `@coderabbitai help` to get the list of available commands.
    2. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched

    3. Approvability

      Verdict: Approved de383fe

      Minor UI behavior change that keeps the traits menu open after selection. The change is limited to two closeOnClick={false} prop modifications in a single component with no impact beyond menu interaction behavior.

      You can customize Macroscope's approvability policy. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    4. chatgpt-codex-connector[bot](GitHub profile, opens in a new tab)commented

      Codex Review Summary

      This comment shows the latest Codex review activity on this pull request.

      ReviewStatusCommitReview trigger
      📝 Code Review✅ Completed 2026-09-15T21:41:15.751315Z76f7f59New 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.

    5. 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.

    6. juliusmarminge closed this

Sign in to join this conversation.