anomalyco / anomalyco/opencode

Desktop: chat viewport snaps back to bottom while scrolling up during streaming response

Open
#40,322 0 comments 0 reactions 1 assignee View on GitHub

@Brendonovich is already working on this.

Since Aug 3, 2026.

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

Description

Environment

OpenCode Desktop on Windows 11 (also affects the web UI).

Description

While an assistant response is streaming, scrolling up (mouse wheel or PageUp/PageDown) is immediately undone: the viewport is pulled back to the bottom on the next streamed token. The behavior persists until the app is restarted.

Related: #29094 (TUI), #17996, #20600.

Steps to reproduce
  1. Send a long prompt that streams a response.
  2. While tokens are still arriving, scroll up with the mouse wheel or PageUp.
  3. The viewport snaps back to the bottom within a second.
  4. Repeat a few times - the behavior never recovers until restart.
Expected behavior

Scrolling up during streaming keeps the viewport in place; scrolling back to the bottom resumes auto-follow.

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.