Skip to content

Chat scrolls to top when Claude sends a message while user is scrolled mid-conversation #34673

Description

@fr0stnk

Description

When having a long conversation with Claude Code, if I scroll up to review earlier messages (middle of the conversation), the chat jumps back to the top every time Claude sends a new message or tool result.

Expected behavior: the viewport should stay at the current scroll position when the user has scrolled away from the bottom. Auto-scroll to bottom should only happen when the user is already near the bottom of the chat.

Steps to reproduce

  1. Have a long conversation with Claude Code (enough messages to scroll)
  2. Scroll up to the middle of the conversation to review earlier messages
  3. Wait for Claude to send a new message (e.g. a tool result or response)
  4. The chat jumps to the top instead of staying at the current scroll position

Expected behavior

Chat should maintain scroll position when the user has scrolled up. Only auto-scroll to bottom when the user is already near the bottom.

Environment

  • Windows 11 Pro
  • Windows Terminal App
  • PowerShell console
  • Claude Code CLI

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions