Terminal scrollback broken in TUI — scroll events captured as command history navigation
Resolved 💬 2 comments Opened Mar 22, 2026 by xeusoc Closed Apr 20, 2026
Description
Terminal scrollback no longer works inside the Claude Code TUI when connected via SSH. Scroll events (mouse wheel, trackpad scroll) are captured by the TUI and interpreted as command history navigation (cycling through previous/next commands) instead of scrolling through terminal output.
Environment
- Claude Code version: 2.1.81 (latest as of 2026-03-20)
- OS: macOS (Darwin 25.3.0), Mac Mini M2
- Terminal: Terminal.app on Mac, connected via SSH
- Shell: zsh
Steps to reproduce
- SSH into a remote machine running Claude Code 2.1.81
- Run a command that produces substantial output (e.g., a file read or bash command)
- Try to scroll up in the terminal to see earlier output
Expected behavior
Scrolling should navigate the terminal scrollback buffer, showing earlier output lines.
Actual behavior
Scrolling navigates through command history (previous/next user inputs to Claude Code) instead of terminal scrollback.
Workarounds attempted (none worked)
- Shift+Up/Down — navigates command history
- Option+Up/Down — navigates command history
- Cmd+Up/Down — moves cursor in command edit window
- Fn+Up/Down (PageUp/PageDown) — not effective
Notes
- User reports this is new behavior as of ~2026-03-22, likely introduced in 2.1.81 or 2.1.80
- Previously, scrolling worked normally for terminal scrollback
- The TUI appears to be capturing all scroll-related input events
🤖 Generated with Claude Code
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗