anomalyco / anomalyco/opencode
TUI: mouse wheel scrolls by message blocks - should scroll line-by-line
Open
@kommander is already working on this.
Since Jul 30, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Is there an existing issue for this?
- I have searched the existing issues
Description
On Windows Terminal, the mouse wheel in opencode's TUI jumps by entire message blocks (3-4 lines at a time) rather than scrolling smoothly one line per tick.
owsToScroll in Windows Terminal doesn't help because opencode's TUI handles mouse events internally.
Steps to Reproduce
- Open opencode on Windows Terminal
- Scroll the conversation with mouse wheel
- Each notch skips multiple lines/entire message blocks
Expected Behavior
Mouse wheel scrolls line-by-line, or there's a configurable scroll multiplier in ui.json
OpenCode Version
1.17.15
Operating System
Windows 11 Pro (26200)
Terminal
Windows Terminal 1.24.11911.0
Additional context
Keyboard line-by-line scrolling works fine (Ctrl+Alt+Y/Ctrl+Alt+E). The issue is mouse wheel only.
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.