[BUG] session list doesn't scroll with keyboard/mouse navigation past the top (same class as #55100)
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
As for https://github.com/anthropics/claude-code/issues/55100 that now is closed but bug is already there.
In a long sessions list, when the selected item reaches the top of the visible area and I keep pressing the Up arrow key, the selection disappears and the list doesn't scroll further up. Scrolling the terminal with the mouse wheel doesn't help either — the line selection just disappears.
What Should Happen?
The list should scroll to keep the selected item visible at all times during navigation, exactly as expected in #55100.
Error Messages/Logs
Steps to Reproduce
- Have enough past sessions that the list is longer than the terminal window (so it needs to scroll).
- Open the sessions list, (left arrow)
- Press the UP arrow key to move the selection down until it's a few items deep.
- Now press the Up arrow key repeatedly to move the selection back toward the top.
- When the selected item reaches the top of the visible area, keep pressing Up.
Result: the selection disappears and the list does not scroll up to reveal the earlier items above.
Also: try scrolling the terminal up with the mouse wheel instead — the selected line just disappears rather than staying highlighted and scrolling into view.
Expected: the list should scroll to keep the selected item visible at all times, exposing the items above the current top.
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
do not remember
Claude Code Version
2.1.220 (Claude Code)
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Windows Terminal
Additional Information
Error both using terminal and command