Add mouse/touch support to permission prompt buttons #6544

Closed
opened 2026-02-16 18:04:32 -05:00 by yindo · 2 comments
Owner

Originally created by @5p00kyy on GitHub (Jan 16, 2026).

Originally assigned to: @kommander on GitHub.

Description

The permission prompt (for "Allow once", "Allow always", "Reject" options) currently only supports keyboard navigation (arrow keys + enter). It would be helpful to also support mouse clicks and touch input for selecting options.

Use Case

This is particularly useful for users running OpenCode in terminal emulators that support mouse/touch input, such as Termux on mobile devices.

Proposed Solution

Add onMouseOver and onMouseUp handlers to the option buttons in the Prompt component, following the existing pattern used throughout the codebase (e.g., dialog-confirm.tsx, question.tsx).

This would allow:

  • Hovering over an option to highlight it
  • Clicking/tapping an option to select it directly
Originally created by @5p00kyy on GitHub (Jan 16, 2026). Originally assigned to: @kommander on GitHub. ## Description The permission prompt (for "Allow once", "Allow always", "Reject" options) currently only supports keyboard navigation (arrow keys + enter). It would be helpful to also support mouse clicks and touch input for selecting options. ## Use Case This is particularly useful for users running OpenCode in terminal emulators that support mouse/touch input, such as Termux on mobile devices. ## Proposed Solution Add `onMouseOver` and `onMouseUp` handlers to the option buttons in the `Prompt` component, following the existing pattern used throughout the codebase (e.g., `dialog-confirm.tsx`, `question.tsx`). This would allow: - Hovering over an option to highlight it - Clicking/tapping an option to select it directly
yindo added the opentui label 2026-02-16 18:04:32 -05:00
yindo closed this issue 2026-02-16 18:04:32 -05:00
Author
Owner

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

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

  • #7966: Permission prompt doesn't support mouse interaction

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 16, 2026): This issue might be a duplicate of existing issues. Please check: - #7966: Permission prompt doesn't support mouse interaction Feel free to ignore if none of these address your specific case.
Author
Owner

@5p00kyy commented on GitHub (Jan 16, 2026):

Duplicate of #7966

@5p00kyy commented on GitHub (Jan 16, 2026): Duplicate of #7966
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6544