Skip to content

Add mouse/touch support to permission prompt buttons #8992

Closed

Description

@5p00kyy

Description

The permission prompt (for "Allow once", "Allow always", "Reject" options) currently only supports keyboard navigation (arrow keys + enter). It would be helpful to also support mouse clicks and touch input for selecting options.

Use Case

This is particularly useful for users running OpenCode in terminal emulators that support mouse/touch input, such as Termux on mobile devices.

Proposed Solution

Add onMouseOver and onMouseUp handlers to the option buttons in the Prompt component, following the existing pattern used throughout the codebase (e.g., dialog-confirm.tsx, question.tsx).

This would allow:

  • Hovering over an option to highlight it
  • Clicking/tapping an option to select it directly

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Jan 16, 2026
  2. github-actions commented on Jan 16, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  3. 5p00kyy commented on Jan 16, 2026

    @5p00kyy
    Author

    Duplicate of #7966

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

opentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions