[PR #7967] feat(tui): add mouse hover and click support to permission prompt #12578

Open
opened 2026-02-16 18:17:28 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/7967

State: open
Merged: No


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

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/7967 **State:** open **Merged:** No --- 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
yindo added the pull-request label 2026-02-16 18:17:28 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12578