Skip to content

TUI mouse reporting conflicts with native terminal copy/paste #24045

Closed

Description

@fat0

Problem

The OpenCode TUI captures mouse events, which prevents native terminal text selection (copy/paste) in iTerm2 and likely other terminals. iTerm2 shows a prompt: 'Looks like you're trying to copy to the pasteboard, but mouse reporting has prevented making a selection.'

Users have to click 'Temporarily disable mouse reporting' every time they want to copy text from the TUI.

Expected behavior

Native terminal copy/paste should work without disabling mouse reporting, similar to how Claude Code's TUI handles this — it avoids capturing mouse events so terminal selection always works natively.

Environment

  • macOS, iTerm2
  • OpenCode TUI

Activity

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

    @github-actions
    Contributor

    This issue doesn't fully meet our contributing guidelines.

    What needs to be fixed:

    • The issue does not use one of the three required templates (Bug Report, Feature Request, or Question). Please re-submit using the appropriate template — in this case, the Bug Report template, which requires a Description field with steps to reproduce.

    Please edit this issue to address the above within 2 hours, or it will be automatically closed.


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

    If you believe this was flagged incorrectly, please let a maintainer know.

  3. fat0 commented on Apr 23, 2026

    @fat0
    Author

    Duplicate of #24046

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

Metadata

Metadata

Assignees

Labels

needs:complianceThis means the issue will auto-close after 2 hours.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