anomalyco / anomalyco/opencode
Mouse capture blocks right-click paste in Windows Terminal
Open
@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, soright-click pastedoes not work even though Windows Terminal is configured withinteraction.rightClick: "paste". Pasting only works viaAlt+right-clickorCtrl+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:
- The
mousesetting 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. - 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(alsotui.jsonglobal 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.