Skip to content

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

@jcampuza

Description

@jcampuza

Description

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

#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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingopentuiThis 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