opencode icon indicating copy to clipboard operation
opencode copied to clipboard

feat(tui): add mouse hover and click support to permission prompt

Open pablonification opened this issue 1 week ago • 1 comments

Adds mouse interaction support to the permission prompt (Allow once / Allow always / Reject) for consistency with other interactive elements like slash command selection.

Previously, users could only navigate permission options using keyboard (arrow keys + enter). This makes it inconsistent with other UI elements that support mouse interaction.

  • Add onMouseOver handler to highlight option on hover
  • Add onMouseUp handler to select option on click

Follows the same pattern used in autocomplete.tsx for slash command selection.

Fixes #7966

pablonification avatar Jan 12 '26 09:01 pablonification

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

github-actions[bot] avatar Jan 12 '26 09:01 github-actions[bot]