opencode
opencode copied to clipboard
feat(tui): add mouse hover and click support to permission prompt
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
onMouseOverhandler to highlight option on hover - Add
onMouseUphandler to select option on click
Follows the same pattern used in autocomplete.tsx for slash command selection.
Fixes #7966
The following comment was made by an LLM, it may be inaccurate:
No duplicate PRs found