[PR #8991] fix(tui): add mouse/touch support to permission prompt buttons #12939

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

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

State: closed
Merged: No


Summary

  • Add onMouseOver and onMouseUp handlers to permission prompt option buttons
  • Allows users to select "Allow once", "Allow always", or "Reject" via mouse click or touch input
  • Selection follows cursor/touch on hover for visual feedback

Details

The permission prompt previously only supported keyboard navigation (arrow keys + enter). This change adds mouse/touch support following the existing pattern used throughout the codebase (e.g., dialog-confirm.tsx, question.tsx).

This is particularly useful for users running OpenCode in terminal emulators that support mouse/touch input (e.g., Termux on mobile devices).

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/8991 **State:** closed **Merged:** No --- ## Summary - Add `onMouseOver` and `onMouseUp` handlers to permission prompt option buttons - Allows users to select "Allow once", "Allow always", or "Reject" via mouse click or touch input - Selection follows cursor/touch on hover for visual feedback ## Details The permission prompt previously only supported keyboard navigation (arrow keys + enter). This change adds mouse/touch support following the existing pattern used throughout the codebase (e.g., `dialog-confirm.tsx`, `question.tsx`). This is particularly useful for users running OpenCode in terminal emulators that support mouse/touch input (e.g., Termux on mobile devices).
yindo added the pull-request label 2026-02-16 18:17:49 -05:00
yindo closed this issue 2026-02-16 18:17:49 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12939