Repository navigation
Prevent context menus from selecting on right-button release - #4440
Merged
SawyerHood merged 2 commits intoSep 29, 2026
Merged
Conversation
Contributor
|
Thanks @ariofrio for the PR. This repo needs approval before a PR. Join the #contributors channel in Discord (https://discord.gg/kvBU6tJhcJ) and explain what you want to open a PR for and why. A maintainer then adds you to the allow list. This PR now closes on its own. Reopen it or open a new one after approval. |
SawyerHood
added a commit
that referenced
this pull request
Sep 29, 2026
## Human comments ## What was wrong `ariofrio` was absent from the contributor allowlist, so the PR gate closed their PRs (#4440, #4444). Their earlier PR #2784 was merged. ## What changed Added `ariofrio` to `.github/APPROVED_CONTRIBUTORS`, allowing the PR gate to accept their PRs after merge. ## How you verified Verified the canonical GitHub login, confirmed the diff adds only that login exactly once case-insensitively, and ran `git diff --check`. CI and SlopCop review are skipped for this data-only change. 🤖 Generated with [Claude Code](https://claude.com/claude-code) > AGENT GENERATED Co-authored-by: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Human comments
What was wrong
When a context menu opens near a viewport edge, its final position can place an item at the right-button release target. Radix synthesizes a click on pointer-up for an item that did not receive pointer-down, so the opening gesture can select that item. This reproduces in the built-in thread-list (issue #4439) and was independently observed in Ribbon PR #122. The sidebar footer already had a local guard for the same behavior.
What changed
ContextMenuContentnow prevents non-primary pointer-up defaults during capture while preserving a caller's capture handler. The footer's duplicate guard is removed. A thread-list regression test verifies that a right-button release over Pin selects nothing and leaves the menu open, while a later click still selects Pin.Regenerated the release-pinned
r/context-menu.jsonregistry entry so plugin consumers receive the same fix. This is in follow-up commit c75b3d931; GitHub still shows the original PR head because the contributor gate closed the PR before that commit was pushed.How you verified
setPinnedand closed the menu (1 failed, 454 passed).pnpm exec turbo run test --filter=bb-plugin-thread-listpassed (455 passed).pnpm exec turbo run test --filter=@bb/app -- src/components/plugin/PluginSidebarFooterItems.test.tsxpassed (12 passed).pnpm exec turbo run typecheck --filter=@bb/shared-ui --filter=bb-plugin-thread-list --filter=@bb/apppassed (7 tasks).pnpm exec turbo run typecheck test --filter=@bb/plugin-registrypassed (6 tasks, including the registry vendor test).node scripts/check-plugin-forks.mjs plugins/thread-listpassed: the forked plugin installed, typechecked, passed its tests, and built. The local nested checkout needed its CLI to resolve this checkout's SDK rather than the older SDK in the parent Ribbon repo.Fixes #4439
Written by Codex