[BUG] Agent window focus lost after navigating with arrow keys, causing scroll deadlock
Resolved 💬 1 comment Opened May 28, 2026 by zhMoody Closed May 28, 2026
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?
After opening an agent sub-window and pressing the left arrow key (←) to navigate, returning to the main chat view causes the panel to become scroll-locked. Scroll input is
incorrectly routed to the chat history inside the dialog instead of the outer viewport.
What Should Happen?
After closing the agent window, focus should return to the main panel and scrolling should work normally on the outer panel.
Error Messages/Logs
No error messages shown. The bug is purely a focus/input-routing issue in the terminal UI.
Steps to Reproduce
- Open Claude Code in a terminal
- Trigger an agent window (e.g., ask it to accomplish a multi-step task)
- While the agent window is active, press the left arrow key (←)
- The agent window closes and you return to the main chat
- Try to scroll the main panel — scrolling is dead, input goes to inner chat history instead
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
2.1.153
Claude Code Version
2.1.153
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
Platform: CLI (npm global install)
Operating System: Windows 10 Pro 10.0.19045
Terminal/Shell: Windows Terminal / PowerShell 7+
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗