claude-code - 💡(How to fix) Fix [BUG] Duplicate answers waisting output tokens [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#54789Fetched 2026-04-30 06:35:58
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×4commented ×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?

When using the CLI and claude is walking you through some process it tends to generate duplicate answers, it has happened to me several times thorugh different sessions. I am using the terminal (Git bash) on VS. Sometimes is in short sentences like the SS i attached, sometimes is a whole answer.

Oppus 4.7 1M Max flat subs

<img width="323" height="61" alt="Image" src="https://github.com/user-attachments/assets/0de5660a-60f1-422b-9b83-eb98f890fea5" />

What Should Happen?

No duplicate answers.

Error Messages/Logs

Steps to Reproduce

It occurs ramdomly. sometimes it happens more often when you are prompting in two languages (English-Spanish)

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.123 (Claude Code)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

VS Code integrated terminal

Additional Information

No response

extent analysis

TL;DR

The issue of duplicate answers from the Claude Code CLI may be related to the Opus model or language switching, and verifying the input prompts and testing with a single language could help identify the cause.

Guidance

  • Verify that the input prompts are correctly formatted and do not contain any duplicate or ambiguous information that could cause the model to generate duplicate answers.
  • Test the CLI with a single language (e.g., only English or only Spanish) to see if the issue persists, which could help determine if language switching is a contributing factor.
  • Check if the issue occurs with other models or versions of Claude Code to isolate the problem.
  • Consider providing more details about the input prompts and the exact steps taken when the issue occurs to help further troubleshoot the problem.

Notes

The issue seems to be intermittent and may be related to the specific model or language usage, so more information and testing are needed to determine the root cause.

Recommendation

Apply workaround: Test with a single language and verify input prompts to see if the issue can be mitigated, as this may help identify the cause and potentially resolve the problem.

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] Duplicate answers waisting output tokens [1 comments, 2 participants]