Skip to content

Scroll position jumps to top during streaming output on Windows Terminal #36621

@NKM4

Description

@NKM4

Description

While Claude Code is streaming a response, if you scroll up using the mouse wheel, the scroll position frequently jumps back to the very top of the terminal. This makes it impossible to review earlier parts of the conversation during generation.

Reproduction steps

  1. Use Claude Code in Windows Terminal until the conversation is long enough to scroll
  2. Ask a question that produces a long streaming response
  3. While the response is being generated, scroll up with the mouse wheel
  4. The viewport jumps to the very top of the terminal buffer

Key observations

  • Only happens during streaming — once generation completes and the input prompt appears, scrolling works normally
  • Likely related to cursor repositioning / ANSI escape sequences used for spinner or status line updates during streaming, which interfere with Windows Terminal's scroll position

Environment

  • Claude Code: 2.1.80
  • OS: Windows 11 Pro (10.0.26200)
  • Terminal: Windows Terminal
  • Shell: bash (Git Bash)

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:tuibugSomething isn't workingplatform:windowsIssue specifically occurs on Windows

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions