claude-code - 💡(How to fix) Fix [BUG] Terminal repeatedly re-renders full conversation history on window resize [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#54732Fetched 2026-04-30 06:37:33
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×4commented ×1

Error Message

Anthropic should fix this error.

Error Messages/Logs

Code Example

No errors, just repeat output.
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?

When using Claude Code in the terminal (macOS, zsh), resizing the terminal window causes the entire conversation history to re-render and scroll into view repeatedly. Each time ▎ the window width changes, the previous response appears again in full — making it look like Claude responded 15-20 times to the same message when it only responded once. ▎
▎ This happens consistently across multiple projects and sessions. Long responses with numbered lists, tables, or wide content make it worse. The token counter and response
▎ content are identical in each "duplicate," confirming it's a display/reflow issue, not multiple API calls. ▎
▎ Environment:
▎ - Claude Code v2.1.116 ▎ - macOS (Darwin 25.4.0) ▎ - Shell: zsh
▎ - Model: Sonnet 4.6 / Claude Max ▎
▎ Steps to reproduce:
▎ 1. Start a Claude Code session in the terminal
▎ 2. Get a response with a long numbered list or wide table
▎ 3. Resize the terminal window wider
▎ 4. Observe the previous response re-rendering in full, repeatedly ▎
▎ Expected: Terminal reflows content in place without re-scrolling history

▎ Actual: Full conversation history re-renders and scrolls, making each prior response appear multiple times

What Should Happen?

Anthropic should fix this error.

Error Messages/Logs

No errors, just repeat output.

Steps to Reproduce

▎ 1. Start a Claude Code session in the terminal
▎ 2. Get a response with a long numbered list or wide table
▎ 3. Resize the terminal window wider
▎ 4. Observe the previous response re-rendering in full, repeatedly

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

v2.1.116

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

VS Code integrated terminal

Additional Information

No response

extent analysis

TL;DR

The issue can be mitigated by adjusting the terminal settings or using a different terminal emulator to handle resizing and text reflow more efficiently.

Guidance

  • Verify that the issue persists across different terminal emulators (e.g., native Terminal app, iTerm2) to isolate if it's specific to the VS Code integrated terminal.
  • Check if there are any settings in the VS Code integrated terminal or zsh configuration that can be adjusted to improve text reflow and scrolling behavior.
  • Consider using a terminal emulator with better support for reflowing text upon window resizing.
  • Test if the issue occurs with shorter responses or simpler content to understand if the problem is content-specific.

Example

No specific code snippet can be provided without modifying the existing Claude Code or zsh configurations, which is beyond the given information.

Notes

The exact cause of the issue is unclear, but it seems related to how the terminal handles text reflow upon resizing. The provided information does not specify any configuration options or version changes that could directly address the issue.

Recommendation

Apply workaround: Adjust terminal settings or use a different terminal emulator, as this seems to be a display/reflow issue rather than a bug in Claude Code itself.

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 [BUG] Terminal repeatedly re-renders full conversation history on window resize [1 comments, 2 participants]