[BUG] Claude Code CLI Window Resize Shenannigans
Open 💬 24 comments Opened Aug 25, 2025 by dylanh724
Environment
- Platform (select one):
- [x] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: <!-- specify -->
- Claude CLI version: <!-- output of
claude --version-->1.0.65 (Claude Code) - Operating System: <!-- e.g. macOS 14.3, Windows 11, Ubuntu 22.04 -->
Win11 - Terminal: <!-- e.g. iTerm2, Terminal App -->
pwsh 7.5.2
Bug Description
<!-- A clear and concise description of the bug -->
If I resize my pwsh.exe window, this permanently happens:
<img width="562" height="825" alt="Image" src="https://github.com/user-attachments/assets/ddd4b685-8cf6-46b1-983b-54036d144189" />
- It'll happen in Rider, Windows Terminal wrapper, pwsh.exe standalone - it doesn't matter.
Steps to Reproduce
- Open claude with pwsh.exe
- Resize the window -- possibly only when it's thinking, but not 100% sure
Expected Behavior
Expect (and adapt to) window resiizn
Actual Behavior
<!-- What actually happened -->
My entire viewport is just a mirrored dupe of the latest few lines over and over, making it unusable until I exit claude and go back.
Additional Context
<!-- Add any other context about the problem here, such as screenshots, logs, etc. -->
24 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
Also happens in version 1.0.90 (latest as of this writing).
Same thing happens with the terminal in the VSCode Claude Code extension.
This is happening in the latest version of Claude with the latest version of both Rider and the Claude plugin for Rider.
When it starts freaking out with the duplicate lines, if you try to persevere and continue typing, you'll have different stages of completion depending on the line. Also, the terminal window contents will flash and shudder with every key press. It makes it very hard to type.
If I were typing this sentence, it would look like
If I were typing this sentence, it would look like t
If I were typing this sentence, it would look like th
If I were typing this sentence, it would look like thi
If I were typing this sentence, it would look like this
Yep this. It's absolutely driving me crazy. How can I rollback an update or two?
If you're using the version from NPM, you can specify a tag.
The usual npm semantics, CLI, and versioning whatnot applies.
Mind the auto-updates it might try to do, though. If you manage to pin it to a version you like I hope you'd report back!
https://www.npmjs.com/package/@anthropic-ai/claude-code?activeTab=versions
Ex.:
npm i @anthropic-ai/claude-code@1.0.90For what it's worth, this has been happening to me since at least 1.0.7x so I don't know if rolling back will help in this case.
still happening on V2.0.28
very annoying
I am using Window Terminal with Powershell
I can confirm that this is still happening with CC 2.0.28. Sometimes it happens even without a window resize triggering it, as far as I can tell.
I am currently using Windows Terminal with CC running via Git Bash.
A suggestion might be for Anthropic to create a "refresh visual state" keyboard shortcut that forces the terminal contents to rerender, but that may not be possible depending on the terminal being used.
Same thing is happening to me as well. Extremely annoying.
Still happens in the latest
Still happening
+1 on the still happening...
Can confirm this also happens in V2.0.55 on Win11, windows CMD terminal, with fresh install, no MCP, no extensions, plugins etc..
Not happening anymore in native 2.0.60.
Something similar happens when running claude inside a tview interface on macos
<img width="3832" height="1618" alt="Image" src="https://github.com/user-attachments/assets/11afadb0-4e30-4f48-996b-0ee8f8a3e1cb" />
I have the same issue in vterm in Emacs.
Same issue when using claude-cli in tmux
Still happening on v2.1.29 with Windows 11 + PowerShell.
When resizing or switching focus, the entire UI (logo, status bar, prompt) gets duplicated multiple times. Neither
Ctrl+Lnor/clearcan clean up these ghost renders - they only clear the conversation history but the duplicated UI elements remain.The only workaround is to exit and restart Claude Code.
Environment:
It's happening to me and making Claude Code unusable for a workflow of copying and pasting messages to future Claude sessions. I don't use tmux, just a plain apple terminal. This sucks - resizing terminals is such an active part of my workflow.
The issue is still there. at certain point, probably when terminal resized and back in wide screen, certain random number of lines (20+) from conversation repeatings too many times destroying the conversation flow. I have latest version and have been constantly updating it as new version is released and the issue is there for months at this point
There are many other related issues closed which means this issue needs to observe the number of times its reported and priority increased but it seems that those other new issues are closed without this issue's priority being increased which keeps it unnoticed may be
I am giving links for some other issues which are duplicates and closed
https://github.com/anthropics/claude-code/issues/11034
https://github.com/anthropics/claude-code/issues/9693
https://github.com/anthropics/claude-code/issues/11038
same issue. is there a workaround at all? e.g. if you're in a regular terminal you can just use
clearorclsto reset the terminal if there's ever strange drawing artifacts. any/command to do the same? (/clearclears context, not rendering)same issue here.