claude-code - 💡(How to fix) Fix [BUG] Conversation history duplicates when resizing terminal window vertically [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#49057Fetched 2026-04-17 08:52:07
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
0
Timeline (top)
labeled ×3cross-referenced ×2commented ×1

Error Message

Error Messages/Logs

Fix Action

Fix / Workaround

The duplicated entries do not go away after resizing back or scrolling. The only workaround is to close and reopen the window.

Code Example

Conversation history entries are duplicated multiple times on vertical
  resize and do not reset without closing the window.
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 the Claude Code terminal window is not in fullscreen and I resize it vertically (drag to make it taller or shorter), the conversation history entries get duplicated visually — sometimes appearing 10+ times.

The duplicated entries do not go away after resizing back or scrolling. The only workaround is to close and reopen the window.

This does NOT happen in fullscreen mode — only when the window is in a smaller/windowed state.

Steps to Reproduce:

  1. Open Claude Code in a non-fullscreen window
  2. Make the window smaller
  3. Drag the window edge to resize it vertically (up or down)
  4. Observe conversation history duplicating repeatedly

What Should Happen?

Conversation history renders once and stays stable during window resize.

Error Messages/Logs

Conversation history entries are duplicated multiple times on vertical
  resize and do not reset without closing the window.

Steps to Reproduce

  1. Open Claude Code in a non-fullscreen (windowed) state
  2. Make the window smaller
  3. Drag the window edge vertically (up or down) to resize
  4. Observe conversation history duplicating repeatedly

Note: This does NOT occur in fullscreen mode. Duplicates do not go away
after resizing back — only closing and reopening the window resets it.

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.1.110 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

extent analysis

TL;DR

The issue can likely be fixed by adjusting the rendering logic for conversation history to account for window resize events in non-fullscreen mode.

Guidance

  • Investigate the code responsible for rendering conversation history and look for any logic that may be tied to window size or resize events.
  • Verify that the issue is indeed related to the window resize event by checking if the conversation history duplicates when the window is resized horizontally as well.
  • Check for any differences in the rendering logic between fullscreen and windowed modes that could be causing the duplication.
  • Consider adding a reset or refresh mechanism for the conversation history when the window is resized to prevent duplication.

Example

No specific code snippet can be provided without more information about the codebase, but an example of how to handle window resize events in a hypothetical rendering function might look like:

function renderConversationHistory() {
  // Clear previous history
  clearHistory();
  
  // Render new history
  renderHistoryEntries();
}

// Call renderConversationHistory on window resize
window.addEventListener('resize', renderConversationHistory);

Notes

The provided information suggests that this is a regression, meaning it worked in a previous version, but without knowing the last working version, it's difficult to pinpoint the exact change that caused the issue.

Recommendation

Apply a workaround by implementing a reset mechanism for the conversation history on window resize events, as the root cause of the issue is likely related to the rendering logic and window resize handling.

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