Skip to content

[Bug]: Slash-command description tooltip stays stuck on screen after switching views (e.g. to Usage → Limits) #46584

Description

@rishi23root

Summary

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):

Tooltip stuck over the Usage/Limits panel

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):

Tooltip source in the slash-command menu

Steps to reproduce

  1. In a thread, type / to open the slash-command menu.
  2. Hover / arrow onto a command with a long description (e.g. /built-in-browser) so its full description tooltip appears.
  3. Without dismissing the menu via the normal mouse-leave path, open the Usage panel (Limits tab) / another overlay.
  4. 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.

Environment

  • T3 Code desktop, Windows 11
  • Surface: thread-view slash-command autocomplete → Usage/Limits overlay

Screenshots are hosted on a throwaway branch of the reporter's public profile repo purely to embed them here.

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

Metadata

Metadata

Assignees

No one assigned

    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