Skip to content

TUI mouse reporting conflicts with native terminal copy/paste in iTerm2 #24046

Closed as not planned

Description

@fat0

Problem

The OpenCode TUI captures mouse events, which prevents native terminal text selection (copy/paste) in iTerm2. 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

Activity

  1. github-actions commented on Apr 23, 2026

    @github-actions
    Contributor

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

    Please review the above issues. If your report isn't covered by any of them, please comment on the most relevant existing issue rather than opening a new one.

  2. ZhouBay-TF commented on Apr 24, 2026

    @ZhouBay-TF

    I can paste normally when connected to the internet, but when I copy exe files to the local area network, pasting becomes impossible. This issue occurs in both versions 1.14.19 and 1.14.20

  3. assigned and unassigned on Apr 26, 2026
  4. github-actions commented on Jun 26, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions