Scroll position jumps to top during streaming output on Windows Terminal

Resolved 💬 7 comments Opened Mar 20, 2026 by NKM4 Closed Apr 26, 2026

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

View original on GitHub ↗

This issue has 7 comments on GitHub. Read the full discussion on GitHub ↗