claude-code - 💡(How to fix) Fix Terminal rendering repeats entire conversation history (regressed in v2.1.101) [1 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#51418Fetched 2026-04-22 08:02:50
View on GitHub
Comments
0
Participants
1
Timeline
7
Reactions
2
Author
Participants
Timeline (top)
labeled ×5cross-referenced ×2
RAW_BUFFERClick to expand / collapse

Bug Description

The Ink terminal renderer appends full frames instead of updating in-place, causing the entire conversation history to be repeated on every re-render cycle.

Environment

  • OS: macOS (Darwin 25.3.0, ARM64)
  • Terminal: Apple_Terminal (TERM_PROGRAM=Apple_Terminal, TERM=xterm-256color)
  • Install method: Volta (volta install @anthropic-ai/claude-code)
  • Locale: LANG=zh_CN.UTF-8

Regression

Binary search across versions:

VersionStatus
v2.1.100✅ No issue
v2.1.101First affected version
v2.1.104❌ Affected (particularly severe)
v2.1.108❌ Affected
v2.1.112❌ Affected

The bug was introduced in v2.1.101 and affects all subsequent versions.

Steps to Reproduce

  1. Install via Volta: volta install @anthropic-ai/[email protected]
  2. Start an interactive session: claude
  3. Send a few messages
  4. Observe that the entire conversation history is re-rendered below the existing output on each update cycle (e.g., when the spinner state changes)

Expected Behavior

Ink should update the terminal display in-place using ANSI escape sequences, only changing the portions that actually changed.

Actual Behavior

Each re-render cycle appends the full conversation as a new frame below the previous one, causing the terminal to scroll with massive duplicated output.

Additional Notes

  • The issue is not related to Chinese localization — verified by reproducing on the unmodified English CLI
  • The issue may be related to Ink's ANSI escape sequence handling changes in v2.1.101
  • Apple_Terminal has limited support for complex cursor manipulation compared to iTerm2 or VS Code terminal

extent analysis

TL;DR

The issue can likely be mitigated by downgrading to version v2.1.100 or investigating ANSI escape sequence handling changes introduced in v2.1.101.

Guidance

  • Investigate the changes made to ANSI escape sequence handling in v2.1.101 to identify the root cause of the issue.
  • Verify if the problem persists when using a different terminal emulator, such as iTerm2 or VS Code terminal, to determine if the issue is specific to Apple_Terminal.
  • Consider downgrading to v2.1.100 as a temporary workaround, as it is reported to not have the issue.
  • Review the Ink terminal renderer code to see if there are any updates or patches available that address this specific problem.

Example

No code snippet is provided as the issue description does not include specific code references.

Notes

The issue may be specific to the Apple_Terminal environment, and further investigation is needed to determine the root cause. The fact that the issue was introduced in v2.1.101 suggests that changes made in this version may be the culprit.

Recommendation

Apply workaround: Downgrade to version v2.1.100, as it is the last known version without the issue, until a fix for the ANSI escape sequence handling is available.

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