[Bug] Chat scroll broken after navigation back from agents view
Status Open
Reported on v2.1.224
Maintainer reply ✓ Yes — bcherny
Activity 3 comments · opened Aug 7, 2026
💡 Likely answer: A maintainer (bcherny, collaborator)
responded on this thread — see the highlighted reply below.
Bug Description
after going to agents view (left arrow) and coming back (right arrow) I can no longer scroll the chat messages, instead it is scrolling my previous messages as if I'm pressing up/down arrow.
Environment Info
- Platform: win32
- Terminal: xterm-256color
- Version: 2.1.224
- Feedback ID: 8f4eeaf4-6f25-4881-a6f0-598342c42551
Errors
[]
3 Comments
The issue: Agents view switching to alternate buffer when opened, and doesn't clean it up when you open a session. I'm guessing it doesn't emit the CSI to close the alternate buffer (
?1049l)Claude Code 2.1.231, macOS (Darwin 25.6.0), kitty 0.48.2, "tui": "default"
Thanks for the report — I reproduced this on the latest release (2.1.233).
Repro: with enough chat history to scroll, confirm the mouse wheel / PageUp scrolls the transcript, then press ← to open the agents view and → to come back to the session. After that round trip the wheel and PageUp no longer scroll the transcript, and the arrow keys act on the prompt/input history instead of scrolling the messages — exactly as you describe.
The terminal is still in the same mouse mode before and after, so it looks like the in-app scroll routing isn't being restored when returning from the agents view. Marking this as a confirmed bug.
🤖 Generated with Claude Code
Please note that the label
reproducedon this issue does not shield it from becoming stale and eventually auto-closed.To prevent this you would need to collect at least 10 thumbs up or comment every time before the 14 days stale interval expires.
See https://github.com/anthropics/claude-code/issues/87647 for details, and consider upvoting that for visibility.