Skip to content

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

@fat0

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

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
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions