You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Slash-command description tooltip stays stuck on screen after switching views (e.g. to Usage → Limits) #46584
The expanded description tooltip for a slash command (e.g. /built-in-browser) does not get dismissed when the menu that spawned it is closed. If you open another surface — such as the Usage → Limits panel — the tooltip stays painted on top of the new, unrelated UI at its original screen coordinates, with no way to dismiss it until something forces a re-render.
It behaves like an orphaned / stale popover: a hover tooltip whose visibility is not tied to the lifecycle of its anchor element or to view/overlay transitions.
Screenshots
1. The bug — the /built-in-browser description tooltip is stuck on top of the Usage → Limits panel (the slash menu and thread are gone, but the tooltip is still there):
2. The trigger — the same tooltip as it legitimately appears when hovering /built-in-browser in the slash-command menu (note the identical text; this is where it originates before it gets orphaned):
Steps to reproduce
In a thread, type / to open the slash-command menu.
Hover / arrow onto a command with a long description (e.g. /built-in-browser) so its full description tooltip appears.
Without dismissing the menu via the normal mouse-leave path, open the Usage panel (Limits tab) / another overlay.
Observe the tooltip.
Expected
The description tooltip is dismissed as soon as the slash menu closes or another view / overlay opens.
Actual
The tooltip remains rendered at its original screen position, floating on top of the Limits panel (and over the thread view). There is no obvious way to dismiss it other than forcing a re-render.
Suspected root cause
The tooltip's visibility appears to be driven by a hovered/active index into the command list and rendered via a fixed-position portal with its own visible state. When the menu unmounts or is covered by a newly-opened overlay, the mouseleave / blur that would clear the active index never fires (the new overlay covers the row), so the portal keeps rendering. Dismissal is not tied to the anchor element's mount state or to view/overlay transitions.
Suggested fix
Reset the tooltip / active-index state on menu unmount (effect cleanup) and on view/overlay change.
Tie the portal's lifetime to its anchor — unmount the tooltip when its anchor unmounts, rather than keeping independent visible state.
Defensive dismissal on global scroll, resize, Escape, and when a new top-layer overlay opens.
Activity