feat(tui): use mouse for permission buttons
What does this PR do?
The question tool is cool to click and use the TUI with a mouse.
This adds similar functionality
How did you verify your code works?
https://github.com/user-attachments/assets/0e3c2850-6ba8-437c-9c93-9eae849b75cc
Thanks for your contribution!
This PR doesn't have a linked issue. All PRs must reference an existing issue.
Please:
- Open an issue describing the bug/feature (if one doesn't exist)
- Add
Fixes #<number>orCloses #<number>to this PR description
See CONTRIBUTING.md for details.
The following comment was made by an LLM, it may be inaccurate:
Found a potential duplicate:
PR #7967: "feat(tui): add mouse hover and click support to permission prompt" https://github.com/anomalyco/opencode/pull/7967
Why it's related: This PR appears to address the same feature - adding mouse interaction support to permission-related UI elements in the TUI. Both PRs involve enabling mouse click/hover functionality for permission prompts/buttons. You should verify whether #7967 is already merged or if it covers the same functionality before proceeding with #9305.