Skip to content

[BUG] Leaving mouse stationary underneath autocomplete items selects them on every keystroke #8799

Closed

Description

@JosXa

Autocomplete menus (@ and / in TUI) and dialog select components currently auto-select items when UI elements move under a stationary cursor. This creates two problematic scenarios:

  1. Menu appears under stationary cursor: When a menu opens, if the user's mouse happens to be over where an item renders, that item gets selected immediately even though the user hasn't moved the mouse
  2. Filter changes reorder items: When typing to filter, items shift position and if one lands under the stationary cursor, it gets auto-selected, breaking keyboard navigation

Users expect hover selection to activate only on intentional mouse movement, not when UI elements move under a stationary cursor.

mouse-highlight-bug.mp4

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Jan 16, 2026
  2. github-actions commented on Jan 16, 2026

    @github-actions
    Contributor

    This issue might be related to existing issues. Please check:

  3. changed the title [-]Fix: Prevent unintentional hover selection in autocomplete menus and dialogs[/-] [+][BUG] Leaving mouse stationary underneath autocomplete items selects them on every keystroke[/+] on Jan 16, 2026
  4. github-actions commented on Mar 26, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

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

Metadata

Metadata

Assignees

Labels

opentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions