[BUG] [BUG] Claude spam repeating itself after terminal goes through size changed (opening source directory, terminal column, etc.)
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?
When I run Claude in say a "wide" terminal, but then need to quickly re-open the source directory or switch terminals, it begins to bug out. It starts to repeat itself over and over. When then typing a new prompt it starts spamming the lines used to outline the prompt area, flooding the space and making it hard to read or keep track.
<img width="1480" height="1312" alt="Image" src="https://github.com/user-attachments/assets/f77b8ed0-4066-4fe0-ace8-67d209fc5644" />
What Should Happen?
The terminal should be able to handle sudden/dynamic width changes to its terminal, ensuring that it does not suddenly begin to bug out and spam the same message multiple times.
Error Messages/Logs
Steps to Reproduce
- Run Claude in a fresh terminal.
- May vary, but from there try to open the source directory/adjust the width of the column. If it does not cause the issue, attempt to write a prompt to Claude then try again.
- Close/reduce the size of the column you opened (Source directory for example).
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.0.33 (Claude Code)
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗