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

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

Originally created by @maharshi365 on GitHub (Jan 20, 2026).

Originally assigned to: @rekram1-node on GitHub.

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

https://github.com/user-attachments/assets/b4edc1d2-b911-485a-a241-9e91edddbe71

Operating System

Windows 11

Terminal

Powershell (via Windows Terminal)

Originally created by @maharshi365 on GitHub (Jan 20, 2026). Originally assigned to: @rekram1-node on GitHub. ### 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 https://github.com/user-attachments/assets/b4edc1d2-b911-485a-a241-9e91edddbe71 ### Operating System Windows 11 ### Terminal Powershell (via Windows Terminal)
yindo added the windowsopentuibug labels 2026-02-16 18:05:52 -05:00
yindo closed this issue 2026-02-16 18:05:52 -05:00
Author
Owner

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

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

  • #9448: Opencode CLI doesn't distinguish input mode when using mouse vs keyboard - This appears to be the same issue where mouse hover position conflicts with keyboard/click selection in select dialogs and menus.
@github-actions[bot] commented on GitHub (Jan 20, 2026): This issue might be a duplicate of existing issues. Please check: - #9448: Opencode CLI doesn't distinguish input mode when using mouse vs keyboard - This appears to be the same issue where mouse hover position conflicts with keyboard/click selection in select dialogs and menus.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6999