Skip to content

fix(site): prevent slash menu from flashing at top-left corner when closed#27326

Merged
ibetitsmike merged 1 commit into
mainfrom
mike/fix-slash-menu-close-flash
Jul 18, 2026
Merged

fix(site): prevent slash menu from flashing at top-left corner when closed#27326
ibetitsmike merged 1 commit into
mainfrom
mike/fix-slash-menu-close-flash

Conversation

@ibetitsmike

Copy link
Copy Markdown
Collaborator

Typing / in the agent chat input opens the skills slash menu. Pressing Backspace to erase the / made the menu flash at the top-left corner of the app for a split second before disappearing.

Radix keeps the popover content mounted through its exit animation, but the caret-positioned PopoverAnchor was unmounted in the same render that closed the menu. Without an anchor, the popper repositioned the still-visible closing content to the viewport origin. The anchor now stays rendered at the last known caret rect, so the menu holds its position while it animates out.

Verified with a frame-by-frame position recorder in the browser: before the fix the closing menu jumped from the caret position to (0, 4); after the fix it stays in place until unmount. Added a BackspaceClosesMenuWithoutRepositioning story that fails without the fix.

This PR was created by Mux, an AI coding agent, on Mike's behalf.

@ibetitsmike

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: 97a9b8315d

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@ibetitsmike
ibetitsmike merged commit 1ea61b9 into main Jul 18, 2026
48 of 49 checks passed
@ibetitsmike
ibetitsmike deleted the mike/fix-slash-menu-close-flash branch July 18, 2026 20:43
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants