Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): trait menu closes after you pick a level #5879

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/5879/headmerged by maria-rcks View on GitHub

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

Close traits menu immediately after selecting a level

Adds closeOnClick to MenuRadioItem components in TraitsPicker.tsx so the menu closes on selection instead of remaining open.

Macroscope summarized 8bfba4c.
    1. Important

      Review skipped

      Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

      ⚙️ Run configuration

      Configuration used: Repository UI

      Review profile: CHILL

      Plan: Pro Plus

      Run ID: 995c1618-ccdd-4027-9ab3-b75daab18a49

      You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

      Use the checkbox below for a quick retry:

      • 🔍 Trigger review

      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
      Comment `@coderabbitai help` to get the list of available commands.
    2. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted

    3. Approvability

      Verdict: Approved 8bfba4c

      Adds closeOnClick prop to two menu radio items to fix dropdown behavior - a minimal, self-contained UI fix with clear intent and no runtime complexity.

      You can customize Macroscope's approvability policy. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    4. Thread transfer impact

      ✅ Thread transfer remains within every enforced ceiling.

      ProviderMetricMain baselineThis PRImpactPR ceiling
      CodexTotal thread wire11.3 KiB11.3 KiB−5 B (−0.0%)15.1 KiB✅
      CodexThread snapshot wire5.5 KiB5.5 KiB−5 B (−0.1%)7.3 KiB✅
      CodexLive turn WebSocket wire5.9 KiB5.9 KiB0 B (0.0%)7.8 KiB✅
      CodexLive turn WebSocket decoded49.7 KiB49.7 KiB0 B (0.0%)66.4 KiB✅
      CodexLive turn messages16160 (0.0%)21✅
      ClaudeTotal thread wire11.3 KiB11.3 KiB−7 B (−0.1%)15.1 KiB✅
      ClaudeThread snapshot wire5.5 KiB5.5 KiB+5 B (+0.1%)7.3 KiB✅
      ClaudeLive turn WebSocket wire5.9 KiB5.8 KiB−12 B (−0.2%)7.8 KiB✅
      ClaudeLive turn WebSocket decoded50.6 KiB50.6 KiB0 B (0.0%)66.4 KiB✅
      ClaudeLive turn messages16160 (0.0%)21✅

      Baseline: deb901d · PR result: 8bfba4c · Source CI: success

      Scenario and decoded snapshot size

      10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.

      • Codex decoded thread snapshot: 94.6 KiB
      • Claude decoded thread snapshot: 95.4 KiB

      Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

    5. maria-rcks merged thisd432100

    6. maria-rcks closed this

Sign in to join this conversation.