Skip to content

Studio: the sidebar "More" menu can be opened while a modal dialog is up #9244

Closed

Description

@danielhanchen

What happens

With a modal dialog open, the sidebar's overflow "More" nav menu can still be opened. A modal
Radix dialog is supposed to shield the rest of the page while it is up, and for every other
sidebar menu it does.

This is on main today. It is not caused by any open PR.

How it was found

It turned up as a control, not as the thing being tested. While measuring #9229 (which takes
three sidebar menus off the body modal layer), the "More" menu was used as a reference point
because it is already modal={false} with the same MenuDismissGuard and is untouched by
that PR. The reference point is what moved.

Measurement

Three Studios serving three production frontend builds, one backend, three browser engines,
three repeats per cell. The modal dialog used is the "New project" dialog
(app-sidebar.tsx, open={creatingProject}), opened with no menu open, confirmed genuinely
modal on every arm (getComputedStyle(document.body).pointerEvents === "none"), and then the
menu trigger is pressed.

menu_blocked_by_modal_dialog, 3/3 in every cell, identical on chromium, firefox and webkit:

menu modal={false}? blocked by the open modal dialog
sidebar per-thread "Chat options" only on #9229 yes, on all arms
sidebar list-header "Organize chats" only on #9229 yes, on all arms
sidebar overflow "More" already, on main no, on all arms

The three arms were: main-side base, #9229's head, and a guardless mutant. The result is the
same on all three, which is what places this before and outside that PR.

That the same check reports "blocked" for two menus and "not blocked" for this one, in the same
run, is also the evidence that the check is not simply stuck on one value.

Scope, and what is NOT claimed

dialog_still_open_after is false in every cell, including the menus that are blocked, so the
trigger press also dismisses the dialog. What is measured is therefore strictly: with a modal
dialog open, a press at the trigger's location produces a menu for "More" and not for the
others
. Whether the correct mechanism is that the dialog refuses the press, or that the other
triggers are simply unreachable under pointer-events: none (the per-thread "Chat options"
trigger is hover-revealed), is not established here. The comparison between menus holds;
the mechanism behind it does not follow from this data.

Why file it separately

It is small, it is real, it predates #9229, and #9229 does not fix it. Recording it in that
PR's description would bury it. Noted there as pre-existing and deliberately out of scope, with
a link here.

Activity

  1. danielhanchen commented on Oct 11, 2026

    @danielhanchen
    MemberAuthor

    Fixed! Sorry on the delay. A press on More with a dialog open was already just closing the dialog, but if the pointer was resting on More and a shortcut opened a dialog (Cmd+, or Cmd+P) within the hover delay, Safari and the Mac Desktop app could show the More menu on top of it. Fixed in #13237, which keeps the menu shut while a dialog is up.
    To update: Unsloth Desktop will have an update banner. For Studio, use unsloth studio update. For Docker, use docker exec <container> unsloth-studio-update. Reopen if it still happens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions