claude-code - 💡(How to fix) Fix [BUG] Same answer repeated many times in Claude Code Terminal [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#52452Fetched 2026-04-24 06:06:52
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Timeline (top)
labeled ×3commented ×1

Error Message

Error Messages/Logs

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?

Repeatition of the last answer, it can be repeated x times at a time and create pollution in the claude code terminal. This happened in both VScode et Zed environment on WSL but aswell on macOs Claude's explanation :

Ce que tu vois n'est pas une répétition de ma réponse — c'est un bug d'affichage du terminal de Claude Code.

En comptant les blocs séparés par les lignes ───, la même réponse apparaît environ 20 fois dans le scrollback. C'est le rendu streaming qui est affiché de manière incrémentale : chaque "frame" de la réponse en cours de génération s'accumule dans l'historique du terminal au lieu de remplacer la précédente.

Pour signaler ce bug à l'équipe, tu peux ouvrir une issue ici : https://github.com/anthropics/claude-code/issues

En incluant :

  • OS : Linux (WSL2)
  • Ce que tu observes : la réponse streamée s'affiche ~20x dans le scrollback au lieu d'être rendue sur place
  • La commande utilisée : Claude Code CLI interactif

What Should Happen?

I should have the answer only one time.

Error Messages/Logs

Steps to Reproduce

  1. Open claude code in any IDEs
  2. Ask any question
  3. Sometimes the answer will be multiplied by x
<img width="1678" height="723" alt="Image" src="https://github.com/user-attachments/assets/3c10ef89-5caf-44d5-82e7-2abdc45ea42a" />

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.1.118

Platform

Other

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Other

Additional Information

No response

extent analysis

TL;DR

The issue can be mitigated by adjusting the rendering of the Claude Code terminal output to replace previous responses instead of appending them.

Guidance

  • The problem seems to be related to the incremental rendering of the response in the terminal, causing previous responses to accumulate in the scrollback.
  • To verify this, try checking the terminal output and see if the repeated responses are indeed due to the incremental rendering.
  • The issue might be specific to the Claude Code CLI interactif, so try using a different interface or command to see if the problem persists.
  • Consider reporting the bug to the Claude Code team with the provided details, including the OS, observed behavior, and command used.

Notes

The issue is reported to have worked in a previous version, but the last working version is not specified, which might be helpful in identifying the cause of the regression.

Recommendation

Apply workaround: The best course of action would be to report the bug to the Claude Code team and wait for a fix, as the issue seems to be related to the internal rendering of the terminal output.

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