anomalyco / anomalyco/opencode

TUI: mouse wheel scrolls by message blocks - should scroll line-by-line

Open
#39,763 1 comment 0 reactions 1 assignee View on GitHub

@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
  1. Open opencode on Windows Terminal
  2. Scroll the conversation with mouse wheel
  3. 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

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.