[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

  1. Open claude with pwsh.exe
  2. 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. -->

View original on GitHub ↗

24 Comments

github-actions[bot] · 10 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/5339
  2. https://github.com/anthropics/claude-code/issues/1495
  3. https://github.com/anthropics/claude-code/issues/4851

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

justcfx2u · 10 months ago

Also happens in version 1.0.90 (latest as of this writing).

ryancu7 · 10 months ago

Same thing happens with the terminal in the VSCode Claude Code extension.

rfmsanz-ethan · 10 months ago

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

dylanh724 · 10 months ago

Yep this. It's absolutely driving me crazy. How can I rollback an update or two?

justcfx2u · 10 months ago

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.90

rfmsanz-ethan · 10 months ago

For 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.

BenNewman100 · 8 months ago

still happening on V2.0.28

very annoying

I am using Window Terminal with Powershell

rfmsanz-ethan · 8 months ago

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.

rfmsanz-ethan · 8 months ago

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.

CaptFaraday · 8 months ago

Same thing is happening to me as well. Extremely annoying.

dylanh724 · 8 months ago

Still happens in the latest

KapsiF · 7 months ago

Still happening

phlojo · 7 months ago

+1 on the still happening...

b-jancovich · 7 months ago

Can confirm this also happens in V2.0.55 on Win11, windows CMD terminal, with fresh install, no MCP, no extensions, plugins etc..

did-vmonroig · 7 months ago

Not happening anymore in native 2.0.60.

TheMarstonConnell · 6 months ago

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" />

zaz · 6 months ago

I have the same issue in vterm in Emacs.

VangVang · 5 months ago

Same issue when using claude-cli in tmux

bingo-taiwan · 5 months ago

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+L nor /clear can 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:

  • Claude Code v2.1.29
  • Windows 11
  • PowerShell 5.1 / Windows Terminal
  • Claude Max (Opus 4.5)
mannanj · 2 months ago

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.

scribnar · 2 months ago

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

Thaddeus-Maximus · 2 months ago

same issue. is there a workaround at all? e.g. if you're in a regular terminal you can just use clear or cls to reset the terminal if there's ever strange drawing artifacts. any / command to do the same? (/clear clears context, not rendering)

ladyrick · 1 month ago

same issue here.