Skip to content

Conversation

@Hona
Copy link
Collaborator

@Hona Hona commented Jan 18, 2026

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?

Screen.Recording.2026-01-19.at.8.54.30.am.mov

Copilot AI review requested due to automatic review settings January 18, 2026 23:03
@github-actions
Copy link
Contributor

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
Copy link
Contributor

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"
#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.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds mouse interaction support to permission prompt buttons in the TUI, allowing users to hover over and click buttons similar to the existing question tool functionality. Additionally, it includes an unmentioned bug fix that prevents duplicate permission replies.

Changes:

  • Added mouse event handlers (onMouseOver and onMouseUp) to permission prompt buttons
  • Fixed a control flow bug where "reject" replies could fall through to send "once" replies

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

reply: "reject",
requestID: props.request.id,
})
return
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it would fall thru and send allow once as well.

send reject, then send allow once.

just sends reject now

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ahh

im on my phone btw so i cant see the content super well

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah all good.
The other blocks also have a return.

A switch expression is prolly better

@rekram1-node rekram1-node merged commit d939a3a into anomalyco:dev Jan 19, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants