GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(web): close reasoning picker after selection by nithish6541 · Pull Request #4758 · pingdotgg/t3code

Conversation

@nithish6541

@nithish6541 nithish6541 commented Jul 28, 2026 •
edited by macroscopeapp Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

What Changed

  • Make the reasoning picker trigger and selectable options use the pointer cursor.
  • Close the reasoning picker immediately after selecting an effort or other trait.

Why

The reasoning control uses a Base UI menu whose trigger/options did not receive the same pointer affordance as the model picker. Its controlled menu state also had no selection-close callback, so the menu stayed open after choosing an option.

Validation

  • vp test run apps/web/src/components/chat/TraitsPicker.test.ts
  • git diff --check
  • Verified in the desktop app that selecting a reasoning effort closes the menu and updates the trigger label.

UI Changes

The reasoning control now matches the model picker cursor behavior and closes after selection.

Note

Close reasoning picker menu after option selection in chat traits picker

The traits menu in TraitsPicker.tsx previously stayed open after a user selected an option. Now TraitsMenuContent accepts an onOptionSelected callback that fires after any trait selection (select, prompt-injected, or boolean toggle), and TraitsPicker uses it to set isMenuOpen to false. Pointer cursor styling is also added to the trigger and radio items.

Macroscope summarized c4fdd43.


Note

Low Risk
Localized composer UI behavior in TraitsPicker.tsx with no auth, data, or API impact.

Overview
The reasoning/traits picker now closes as soon as you pick an option, matching the model picker instead of staying open under controlled menu state.

TraitsMenuContent gains an optional onOptionSelected hook invoked after select changes (including ultrathink prompt-injection paths) and boolean on/off toggles. TraitsPicker wires that to setIsMenuOpen(false). cursor-pointer is applied to the trigger and radio items for clearer click affordance.

Reviewed by Cursor Bugbot for commit c4fdd43. Bugbot is set up for automated code reviews on this repo. Configure here.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@nithish6541
fix(web): close reasoning picker after selection
ce4b020
@coderabbitai

coderabbitai Bot commented Jul 28, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

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: 8b576c70-6e69-45ca-9847-899b4626e99f

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
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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
  • X
  • Mastodon
  • Reddit
  • LinkedIn

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot added size:S 10-29 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list. labels Jul 28, 2026
nithish6541 and others added 2 commits August 6, 2026 23:11
@nithish6541
Merge branch 'main' into agent/reasoning-dropdown-cursor-close
81f10d6
@nithish6541
Merge remote-tracking branch 'origin/main' into HEAD
c4fdd43
# Conflicts:
#	apps/web/src/components/chat/TraitsPicker.tsx
@nithish6541
nithish6541 marked this pull request as ready for review August 16, 2026 06:02
macroscopeapp[bot]
macroscopeapp Bot reviewed Aug 16, 2026
View reviewed changes

@macroscopeapp macroscopeapp Bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UI consistency review

The pointer-cursor additions in this PR duplicate cursor state that the shared primitives already own, so they are no-ops at the call site:

  • Button's base buttonVariants already includes cursor-pointer (apps/web/src/components/ui/button.tsx), which ComposerControl renders through — so the cursor-pointer on MenuTrigger and on both ComposerControl class branches adds nothing.
  • MenuRadioItem's base classes already include cursor-pointer plus data-disabled:cursor-not-allowed (apps/web/src/components/ui/menu.tsx), so the per-item className="cursor-pointer" only re-states the primitive contract.

Separately, the menu already closes on pick via closeOnClick on the radio items (added upstream in #5879, present at the merge base), so the new onOptionSelected close path is a second mechanism for the same behavior — and it is passed before {...persistence}, which makes it clobberable.

Details inline.

Posted via Macroscope — UI Consistency

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread apps/web/src/components/chat/TraitsPicker.tsx
Comment on lines +381 to +387
<MenuRadioItem
key={value}
value={value}
hideIndicator
className="cursor-pointer"
closeOnClick
>

@macroscopeapp macroscopeapp Bot Aug 16, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here — the cursor-pointer is already part of MenuRadioItem's base classes, so this only re-wraps the element without a behavior change.

Suggested change
<MenuRadioItem
key={value}
value={value}
hideIndicator
className="cursor-pointer"
closeOnClick
>
<MenuRadioItem key={value} value={value} hideIndicator closeOnClick>

Posted via Macroscope — UI Consistency

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread apps/web/src/components/chat/TraitsPicker.tsx
onPromptChange={onPromptChange}
modelOptions={modelOptions}
allowPromptInjectedEffort={allowPromptInjectedEffort}
onOptionSelected={() => setIsMenuOpen(false)}

@macroscopeapp macroscopeapp Bot Aug 16, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two problems with this close path:

  1. The radio items already carry closeOnClick, so Base UI closes the menu on pick (merge-base behavior from fix(web): trait menu closes after you pick a level #5879). This callback adds a second, imperative close for the same interaction; if it isn't fixing a case closeOnClick misses, prefer dropping the prop rather than keeping two close mechanisms.
  2. If it is kept, the prop order is a hazard: onOptionSelected is declared on TraitsMenuContentProps, which TraitsPicker also accepts but does not destructure, so a consumer-supplied onOptionSelected flows into the ...persistence rest object and — because {...persistence} is spread after this line — silently overrides the menu-close handler.

Smallest fix for (2): destructure onOptionSelected in TraitsPicker's signature (calling it alongside setIsMenuOpen(false)), or move {...persistence} above this prop so the close handler wins.

Posted via Macroscope — UI Consistency

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread apps/web/src/components/chat/TraitsPicker.tsx
key={option.id}
value={option.id}
hideIndicator
className="cursor-pointer"

@macroscopeapp macroscopeapp Bot Aug 16, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MenuRadioItem already sets cursor-pointer (and data-disabled:cursor-not-allowed) in its own base classes, so this call-site class re-declares primitive-owned cursor state without changing rendering. Cursor ownership should stay in the primitive; consider dropping it here.

                     hideIndicator
-                    className="cursor-pointer"

Posted via Macroscope — UI Consistency

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread apps/web/src/components/chat/TraitsPicker.tsx
Comment on lines +528 to +529
? "min-w-0 max-w-40 shrink cursor-pointer justify-start overflow-hidden whitespace-nowrap sm:max-w-48"
: "shrink-0 cursor-pointer whitespace-nowrap",

@macroscopeapp macroscopeapp Bot Aug 16, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These two branches carry contextual layout only; cursor-pointer comes from Button's base variant, so adding it here duplicates the primitive contract inside a call-site class string.

Suggested change
? "min-w-0 max-w-40 shrink cursor-pointer justify-start overflow-hidden whitespace-nowrap sm:max-w-48"
: "shrink-0 cursor-pointer whitespace-nowrap",
? "min-w-0 max-w-40 shrink justify-start overflow-hidden whitespace-nowrap sm:max-w-48"
: "shrink-0 whitespace-nowrap",

Posted via Macroscope — UI Consistency

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread apps/web/src/components/chat/TraitsPicker.tsx
}}
>
<MenuTrigger
className="cursor-pointer"

@macroscopeapp macroscopeapp Bot Aug 16, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MenuTrigger renders ComposerControl → Button, whose base buttonVariants already includes cursor-pointer, so this trigger-level class has no effect and splits cursor ownership across the trigger and the rendered control. Suggest removing it and letting Button own the cursor.

       <MenuTrigger
-        className="cursor-pointer"
         render={

Posted via Macroscope — UI Consistency

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
macroscopeapp[bot]
macroscopeapp Bot approved these changes Aug 16, 2026
View reviewed changes
@macroscopeapp

macroscopeapp Bot commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved c4fdd43

Small, self-contained UI fix that adds a callback to close the menu picker after selection. The unresolved comments are style suggestions about redundant cursor-pointer classes and minor prop ordering, not blocking issues.

You can customize Macroscope's approvability policy. Learn more.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@t3dotgg

t3dotgg commented Aug 27, 2026

Copy link
Copy Markdown
Member

Note

🤖 GPT-5.6 Sol responding on behalf of Theo

We're closing this PR as we clean up the T3 Code backlog. Thank you for taking the time to put this together.

Closing as covered by the merged trait-picker fix. The current menu items already close on selection through closeOnClick, and shared controls supply pointer styling. The added callback path would duplicate that behavior. A remaining failure should identify the specific current picker and input method. Related work: #5879.

If you believe we closed this in error, please reopen the PR and leave a comment explaining what we missed. If GitHub does not let you reopen it, leave a comment here and we'll take another look.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@t3dotgg t3dotgg closed this Aug 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:S 10-29 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@nithish6541 @t3dotgg
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.