claude-code - 💡(How to fix) Fix Input text duplicates on terminal resize (minimize/maximize) in PowerShell on Windows 11 [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#48169Fetched 2026-04-15 06:31:13
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Timeline (top)
labeled ×3commented ×1

Every time the terminal window is minimized or maximized, the current input text in the prompt is duplicated and re-echoed to the screen. Each resize event adds another copy, stacking up and covering prior conversation output.

Root Cause

Every time the terminal window is minimized or maximized, the current input text in the prompt is duplicated and re-echoed to the screen. Each resize event adds another copy, stacking up and covering prior conversation output.

RAW_BUFFERClick to expand / collapse

Description

Every time the terminal window is minimized or maximized, the current input text in the prompt is duplicated and re-echoed to the screen. Each resize event adds another copy, stacking up and covering prior conversation output.

Environment

  • Claude Code version: 2.1.108
  • Shell: PowerShell
  • OS: Windows 11 Pro (10.0.26200)

Steps to Reproduce

  1. Open Claude Code in PowerShell on Windows 11
  2. Type any text into the input prompt (do not submit)
  3. Minimize or maximize the terminal window
  4. Observe the input text is duplicated on screen
  5. Repeat -- each resize adds another copy

Expected Behavior

Input text should remain as-is after a terminal resize/reflow event.

Actual Behavior

The input buffer is re-echoed to the display on every resize event, stacking duplicate copies of the current input text.

extent analysis

TL;DR

The issue can be mitigated by modifying the terminal settings or the application's handling of resize events to prevent re-echoing of the input buffer.

Guidance

  • Investigate the Claude Code version 2.1.108 documentation for any settings related to terminal resize events and input buffer handling.
  • Check if there are any PowerShell settings or profiles that can be adjusted to prevent the re-echoing of input text on resize events.
  • Consider using a different shell or terminal emulator to see if the issue is specific to PowerShell or Windows 11.
  • Look into potential workarounds, such as using a third-party plugin or script to handle terminal resize events and input buffer management.

Example

No code snippet is provided as the issue seems to be related to the interaction between the Claude Code application, PowerShell, and the Windows 11 terminal, and without more specific details, it's difficult to provide a precise code-based solution.

Notes

The issue might be specific to the combination of Claude Code, PowerShell, and Windows 11, so testing with different versions or environments could help isolate the cause. Additionally, there might be limitations in how Claude Code handles terminal events, so checking the application's documentation and support resources is crucial.

Recommendation

Apply workaround: Given the nature of the issue, which seems to involve the interaction of multiple components (Claude Code, PowerShell, and Windows 11), applying a workaround that modifies how the terminal or application handles resize events and input buffer management might be the most feasible immediate solution.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING