anomalyco / anomalyco/opencode

[FEATURE]: Auto-scroll to top of new assistant response instead of bottom

Open
#40,870 2 comments 1 reaction 1 assignee View on GitHub

@Brendonovich is already working on this.

Since Aug 6, 2026.

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

Description

Feature hasn't been suggested before.
  • I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
Feature request

When the assistant finishes streaming a response that's longer than the viewport, the scroll position stays at the bottom of that response, forcing me to scroll up manually to read it from the top.

Please add either:

  1. A preference toggle in Desktop → General (or similar) to auto-scroll to the top of the newest response when it finishes rendering, OR
  2. A dedicated "Jump to Answer Start" button/shortcut as previously requested in #9794.
Related and prior work
  • #9794 — [FEATURE]: Add 'Jump to Answer Start' Button. Closed as COMPLETED but based on the last automated comment, it appears to have been auto-closed after 90 days of inactivity rather than actually implemented. The feature is not present in the desktop app v1.18.14.
  • #3337 — Navigation Shortcut to Jump Between User Messages. Also closed similarly. Related but different (jumps between user messages, not to top of assistant response).
  • #5783 — Scroll down UI button when !bottom. Already implemented (Jump to Latest button exists at the bottom of long conversations). This request is the mirror-image: a way to jump to the top of the newest response.
  • #9227 — Bookmarks in thread. Alternative approach, not equivalent.

None of the above solve the specific problem: I want reading a new response to start from the top of that response, ideally automatically.

Desired behavior

Preferred approach (automatic):

  • New toggle: "Scroll to top of new response" (default off, to preserve current behavior).
  • When enabled: after the assistant finishes streaming, viewport scrolls so the first line of the newest response is at the top.

Acceptable fallback (manual):

  • Reintroduce the "Jump to Answer Start" button from #9794 at the top of each assistant response, OR
  • Add a keyboard shortcut like Cmd+Home or Alt+↑ to jump to the beginning of the latest assistant message.
Why this matters
  • Reading top-to-bottom is the natural flow; landing at the bottom of a long response is disorienting.
  • On mixed content (explanation + code + tables), the manual scroll adds friction on every turn.
  • Users who prefer the current auto-scroll-to-bottom behavior can leave the toggle off.
Environment
  • OpenCode Desktop 1.18.14
  • macOS 26.5.2
  • Verified no scroll-related option exists under Settings → Desktop → General.
  • Verified no "jump to previous message" shortcut exists under Settings → Desktop → Shortcuts.

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.