Opencode CLI doesn't distinguish input mode when using mouse vs keyboard #6823

Closed
opened 2026-02-16 18:05:22 -05:00 by yindo · 1 comment
Owner

Originally created by @jcampuza on GitHub (Jan 19, 2026).

Originally assigned to: @kommander on GitHub.

Description

This is similar to an issue that was seen in the apps and I've seen on discord.

https://github.com/anomalyco/opencode/pull/9435

When your mouse happens to be under an opencode dialog or select element the mouse events continue to fire when navigating via the keyboard.

Plugins

none

OpenCode version

1.1.25

Steps to reproduce

  1. Open opencode
  2. type / to show slash commands menu
  3. Place mouse over the menu then navigate with the keyboard
  4. Notice the highlighted item will jump to whatever the mouse pointer is over as it scrolls/moves with the keyboard.

Same steps for select dialogs

  1. Type /sessions
  2. Position mouse over the select dialog
  3. Use keyboard navigation
  4. Note the highlighted item always jumps back to where the mouse is.

Image

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Originally created by @jcampuza on GitHub (Jan 19, 2026). Originally assigned to: @kommander on GitHub. ### Description This is similar to an issue that was seen in the apps and I've seen on discord. https://github.com/anomalyco/opencode/pull/9435 When your mouse happens to be under an opencode dialog or select element the mouse events continue to fire when navigating via the keyboard. ### Plugins none ### OpenCode version 1.1.25 ### Steps to reproduce 1. Open opencode 2. type `/` to show slash commands menu 3. Place mouse over the menu then navigate with the keyboard 4. Notice the highlighted item will jump to whatever the mouse pointer is over as it scrolls/moves with the keyboard. Same steps for select dialogs 1. Type /sessions 2. Position mouse over the select dialog 3. Use keyboard navigation 4. Note the highlighted item always jumps back to where the mouse is. ![Image](https://github.com/user-attachments/assets/5674c3a4-b85d-4be9-90b5-b9223392f4b2) ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the opentuibug labels 2026-02-16 18:05:22 -05:00
yindo closed this issue 2026-02-16 18:05:22 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 19, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #8799: [BUG] Leaving mouse stationary underneath autocomplete items selects them on every keystroke - This appears to describe the exact same problem where mouse position interferes with keyboard navigation in menus and dialogs

Feel free to ignore if this doesn't address your specific case.

@github-actions[bot] commented on GitHub (Jan 19, 2026): This issue might be a duplicate of existing issues. Please check: - #8799: [BUG] Leaving mouse stationary underneath autocomplete items selects them on every keystroke - This appears to describe the exact same problem where mouse position interferes with keyboard navigation in menus and dialogs Feel free to ignore if this doesn't address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6823