Skip to content

Question selection click selects wrong option when terminal is unfocused #9730

@maharshi365

Description

@maharshi365

Description

When the question tool presents selection options and the terminal is unfocused, clicking on an option in the middle of the list (e.g., option 2 or 3) always selects the last hovered option before unfocus instead of the clicked one.

Plugins

None

OpenCode version

1.1.28

Steps to reproduce

  1. Trigger a question prompt (e.g., ask the agent something that causes it to use the question tool with multiple options)
  2. Click away from the terminal to unfocus it
  3. Click directly on option 2 or 3 in the question selection list
  4. Observe that option 1 gets selected instead of the clicked option

Screenshot and/or share link

20260121-0019-25.9034781.mp4

Operating System

Windows 11

Terminal

Powershell (via Windows Terminal)

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentuiwindows

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions