claude-code - 💡(How to fix) Fix [BUG] Claude Code v2.1.109 duplicates previously rendered content in the terminal UI [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#48318Fetched 2026-04-16 07:03:10
View on GitHub
Comments
1
Participants
2
Timeline
7
Reactions
0
Timeline (top)
cross-referenced ×3labeled ×3commented ×1
RAW_BUFFERClick to expand / collapse

Bug description

Claude Code v2.1.109 appears to re-render old screen content repeatedly in the terminal UI.

The issue is not the model text itself — the problem is that previously rendered blocks are duplicated and appended again, causing the same welcome screen, previous conversation content, and slash-command output to appear multiple times.

From the screenshot, the duplicated content includes:

  • the welcome screen rendered multiple times
  • earlier conversation messages shown again
  • slash-command interactions like /effort, /doctor, and /clear appearing to trigger extra redraws that append old content

Expected behavior

The terminal UI should redraw cleanly and only show the current screen state, without duplicating previously rendered content.

Steps to reproduce

  1. Update Claude Code to v2.1.109
  2. Launch claude
  3. Enter hello
  4. Ask 你是什么模型?
  5. Type / to open the slash-command menu
  6. Run /effort
  7. Run /doctor
  8. Run /clear
  9. Observe that previously rendered UI blocks are shown again instead of the screen being redrawn cleanly

Claude Code version

2.1.109 (Claude Code)

Environment

  • OS: Linux (CentOS-based)
  • User: root
  • Working directory shown in UI: /root

Additional notes

This looks like a terminal UI redraw / screen buffer / rendering issue rather than a content-generation issue.

I have a screenshot showing the duplicated rendering pattern, but did not attach it through the CLI issue creation flow.

extent analysis

TL;DR

The issue can be mitigated by investigating and adjusting the terminal UI rendering logic to prevent duplicated content.

Guidance

  • Review the terminal UI rendering code to identify where the duplication of previously rendered blocks is occurring, focusing on the handling of screen state and redraws.
  • Verify that the issue is specific to version 2.1.109 by testing previous versions of Claude Code to see if the problem persists.
  • Check for any buffering or caching mechanisms in the terminal UI that might be causing old content to be appended instead of cleared.
  • Consider adding logging or debugging statements to the rendering logic to track the flow of screen updates and identify where the duplication is happening.

Example

No specific code example can be provided without access to the Claude Codebase, but a general approach might involve reviewing functions responsible for updating the terminal UI, such as those handling screen redraws, buffer management, or state updates.

Notes

The exact cause of the issue is unclear without more information about the internal workings of Claude Code's terminal UI rendering. The problem seems to be related to how the UI handles redraws and updates, possibly due to changes introduced in version 2.1.109.

Recommendation

Apply a workaround by adjusting the terminal UI rendering logic, as the root cause seems to be related to how the screen is updated and redrawn, rather than a straightforward versioning issue that could be resolved by upgrading.

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…

FAQ

Expected behavior

The terminal UI should redraw cleanly and only show the current screen state, without duplicating previously rendered content.

Still need to ship something?

×6

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

Back to top recommendations

TRENDING