Forced scroll to bottom when window gains focus (Windows Terminal + WSL2)

Resolved 💬 11 comments Opened Mar 12, 2026 by hirokunmen0705-glitch Closed Apr 13, 2026

Summary

When the Claude Code window gains focus, the terminal view forcibly scrolls to the bottom, making it impossible to read past output.

Environment

  • OS: Windows 11 + WSL2 (Ubuntu)
  • Terminal: Windows Terminal 1.23.20211.0
  • Claude Code: 2.1.74
  • Shell: bash

Steps to Reproduce

  1. Start Claude Code in Windows Terminal (WSL2)
  2. Scroll up to read previous output
  3. Click on another window (lose focus)
  4. Click back on the Claude Code window (regain focus)
  5. View immediately jumps back to the bottom

Expected Behavior

Scroll position should be preserved when the window regains focus.

Actual Behavior

Every time the window gains focus, the view is forcibly scrolled to the bottom. This makes it impossible to read past output while multitasking.

Additional Notes

  • scrollToBottomOnInput: false is already set in Windows Terminal settings — no effect
  • The issue does NOT occur when focus remains on the Claude Code window
  • On another PC with the same WSL2 setup but with Claude Code not focused (user working in other windows), the issue is not noticed — consistent with this being a focus-triggered bug
  • Likely related to: focus gain event → scroll-to-bottom triggered in TUI/Ink rendering
  • Possibly related to #32473 (scroll/display issues on Windows)

View original on GitHub ↗

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