claude-code - 💡(How to fix) Fix Terminal resize causes duplicate UI frames [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#46981Fetched 2026-04-13 05:44:39
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
1
Author
Timeline (top)
labeled ×4closed ×1commented ×1

Error Message

Error Messages/Logs

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Terminal resize causes the UI to redraw without proper resizing, stacking multiple stacking copies of the interface on top of each other. The terminal becomes very confusing until you press Ctrl+L or restart Claude Code. Also the Conversations start to jump in the same window when entering a new input.

<img width="811" height="674" alt="Image" src="https://github.com/user-attachments/assets/da633460-9c29-4d67-a8d5-4f9b35055a51" />

What Should Happen?

On resize, Claude Code should clear the current frame and redraw the UI to fit the new terminal dimensions — showing exactly one clean instance of the interface - The input area and conversation history should reflow to the new width/height without duplicating or overlapping

  • Conversation history should stay anchored to its current scroll position when new input is submitted — not jump or reposition unexpectedly

Error Messages/Logs

Steps to Reproduce

⏺ Steps to reproduce:

  1. Open Claude Code in any terminal (macOS Terminal, iTerm2)
  2. Start a conversation — enter any prompt and receive a response
  3. Resize the terminal window (drag to make it larger or smaller)
  4. Observe the UI: previous frames remain visible, new frames stack on top
  5. Enter a new prompt — observe the conversation jumping position within the window

Environment:

  • macOS Sequoia (Darwin 24.0.0)
  • Claude Code v2.1.104
  • Reproducible in: macOS Terminal + iTerm2
  • $TERM: xterm-256color

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

Claude Code 2.1.104

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

iTerm2

Additional Information

i wanted to install tmux but droped it half way through to instead let CC write a python scrip

extent analysis

TL;DR

The issue can likely be mitigated by modifying the terminal resize handling in Claude Code to properly clear the current frame before redrawing the UI.

Guidance

  • Verify that the issue is specific to the current version of Claude Code (v2.1.104) and not a configuration issue with the terminal or operating system.
  • Check if there are any existing configuration options or environment variables that can be adjusted to improve the terminal resize behavior.
  • Consider downgrading to a previous version of Claude Code that worked as expected, if possible, to isolate the issue.
  • Investigate the Claude Code documentation and source code (if available) for any hints on how to customize or override the terminal resize handling.

Notes

The issue seems to be a regression, as it worked in a previous version of Claude Code. However, without more information on the changes made between versions, it's difficult to provide a more specific solution.

Recommendation

Apply workaround: Since the issue is a regression and the last working version is not specified, it's recommended to try adjusting the configuration or environment variables to improve the terminal resize behavior, rather than downgrading to an unspecified previous version.

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

claude-code - 💡(How to fix) Fix Terminal resize causes duplicate UI frames [1 comments, 2 participants]