[BUG] Title: Window resize resets scroll position to top
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?
Description:
When resizing the Claude Code window, the scroll position jumps back to the start of the conversation instead of maintaining the current reading position.
Actual behaviour:
The view jumps to the top of the conversation, requiring manual scrolling back to the previous reading position.
Impact:
This disrupts the reading flow, particularly when frequently adjusting window size or working with tiled window managers.
What Should Happen?
Expected behaviour:
The scroll position should remain at or near the content that was visible before resizing, maintaining the user's reading context.
Error Messages/Logs
Steps to Reproduce
Steps to reproduce:
- Open Claude Code with a conversation that extends beyond the visible viewport
- Scroll down to read content further in the conversation
- Resize the window (either width or height)
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
v2.1.1
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
iTerm2
Additional Information
_No response_
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗