anomalyco / anomalyco/opencode
Desktop: chat viewport snaps back to bottom while scrolling up during streaming response
Open
@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
- Send a long prompt that streams a response.
- While tokens are still arriving, scroll up with the mouse wheel or PageUp.
- The viewport snaps back to the bottom within a second.
- 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
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.