anomalyco / anomalyco/opencode

Mouse capture blocks right-click paste in Windows Terminal

Open
#48,004 1 comment 0 reactions 1 assignee View on GitHub

@Hona is already working on this.

Since Sep 8, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description

When using the OpenCode TUI inside Windows Terminal (v1.24) on Windows, the mouse option is an all-or-nothing switch:

  • mouse: true (default): wheel-scrolling of chat history works, but right-click is consumed by the app, so right-click paste does not work even though Windows Terminal is configured with interaction.rightClick: "paste". Pasting only works via Alt+right-click or Ctrl+Shift+V.
  • mouse: false: right-click paste works (Windows Terminal handles it), but wheel scrolling no longer scrolls the chat view (mouse events are not delivered to the TUI).

Expected behavior

Wheel scrolling and terminal-level right-click paste should be able to coexist. Ideally:

  1. The mouse setting should be split, e.g. control wheel-scrolling / left-click separately from right-button capture, so right-click can fall through to the terminal emulator.
  2. Or the TUI should not capture the right mouse button at all, leaving it to the terminal for paste / context menu.

Environment

  • OpenCode TUI in Windows Terminal 1.24.11911.0
  • OS: Windows
  • Config: ~/.config/opencode/tui.json (also tui.json global config)

Workaround today

mouse: true + Alt+right-click to paste, or switch mouse: false and give up wheel scrolling in the chat view.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.