opencode icon indicating copy to clipboard operation
opencode copied to clipboard

feat(tui): use mouse for permission buttons

Open Hona opened this issue 2 days ago • 2 comments

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

Hona avatar Jan 18 '26 23:01 Hona

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

github-actions[bot] avatar Jan 18 '26 23:01 github-actions[bot]

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.

github-actions[bot] avatar Jan 18 '26 23:01 github-actions[bot]