claude-code - 💡(How to fix) Fix [Bug] Terminal transcript duplicated on window resize in TUI renderer [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#52797Fetched 2026-04-25 06:20:40
View on GitHub
Comments
1
Participants
2
Timeline
8
Reactions
0
Timeline (top)
labeled ×6commented ×1cross-referenced ×1

Fix Action

Fix / Workaround

Already ruled out:

  • Empty ~/.claude/settings.json ({})
  • No hooks configured
  • MCP servers disabled (including xcode MCP)
  • Multiple terminal apps
  • Downgrade and re-upgrade to latest
  • Fresh sessions with no history

Code Example

[]
RAW_BUFFERClick to expand / collapse

Bug Description Existing transcript content gets duplicated on terminal resize. Every resize multiplies the visible messages — the count compounds quickly with each resize (roughly exponentially), and the session becomes unusable almost immediately, not gradually. No typing required; just resizing the window or any layout reflow triggers it.

Version: 2.1.119 OS: macOS 26 (Darwin 25.4.0)

Already ruled out:

  • Empty ~/.claude/settings.json ({})
  • No hooks configured
  • MCP servers disabled (including xcode MCP)
  • Multiple terminal apps
  • Downgrade and re-upgrade to latest
  • Fresh sessions with no history

Filed a previous report yesterday, still reproing on 2.1.119. Looks like a redraw/reflow bug in the TUI renderer triggered by SIGWINCH / resize events. Happy to attach /debug logs or a screen recording if useful.

Environment Info

  • Platform: darwin
  • Terminal: vscode
  • Version: 2.1.119
  • Feedback ID: 12c87e14-c6e2-4bfe-8380-c23d5938e9dc

Errors

[]
<img width="673" height="410" alt="Image" src="https://github.com/user-attachments/assets/44358d39-f465-4727-bfe6-e7c7ecbcefaf" />

extent analysis

TL;DR

The issue can likely be mitigated by disabling the TUI renderer's redraw on resize events or applying a workaround to handle SIGWINCH signals.

Guidance

  • Investigate the TUI renderer's event handling for SIGWINCH signals to determine if there's an issue with the redraw logic.
  • Attempt to reproduce the issue with a minimal setup to isolate the cause and verify if it's specific to the current environment or version.
  • Consider adding logging or debugging statements to the TUI renderer to track the redraw process and identify potential duplication points.
  • If possible, test an earlier version of the software to see if the issue is specific to version 2.1.119.

Example

No code snippet is provided as the issue lacks specific implementation details.

Notes

The issue seems to be specific to the TUI renderer and resize events, but without more information about the renderer's implementation, it's difficult to provide a definitive fix. The provided image and debug logs may be helpful in further diagnosing the issue.

Recommendation

Apply a workaround to handle SIGWINCH signals, as the issue is likely related to the TUI renderer's redraw logic and resizing events. This approach may help mitigate the problem until a more permanent fix can be implemented.

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 transcript duplicated on window resize in TUI renderer [1 comments, 2 participants]