claude-code - 💡(How to fix) Fix [BUG] Terminal scroll shows duplicated prompt/response on session start with parallel tool calls [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#46775Fetched 2026-04-12 13:33:21
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?

On session start, when Claude makes multiple parallel tool calls (MCP calls, agent spawns), the terminal scroll buffer shows the user's initial prompt and Claude's response duplicated multiple times. Scrolling up reveals the
same prompt/response pair rendered 2-3+ times.

What Should Happen?

Expected Behavior

User prompt and Claude response appear once in the scroll buffer.

Error Messages/Logs

Steps to Reproduce

  1. Start a new Claude Code session with multiple MCP servers connected (Gmail, Google Calendar, WealthBox, etc.) and a SessionStart hook triggering automated workflows
  2. Send a short initial message (e.g. "gm") calendar pull, 5+ email reads, 2 agent spawns)
  3. Scroll up in the terminal

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.1.101

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

Expected Behavior

User prompt and Claude response appear once in the scroll buffer.

Actual Behavior

User prompt and Claude response appear duplicated multiple times.

Environment

  • Claude Code version: 2.1.101
  • OS: macOS (Darwin 23.6.0)
  • Model: claude-opus-4-6 (1M context)
  • MCP servers: 8+ (Google Workspace, Gmail, Calendar, WealthBox, Knowledge Graph, others)
  • Session: Heavy parallel tool use on startup — 3 simultaneous Gmail searches, 5 email reads, 2 agent spawns

Notes

This is a rendering/display issue only. Claude's responses are correct and not duplicated in behavior — the scroll buffer just shows them multiple
times visually.

extent analysis

TL;DR

The issue can be addressed by investigating and optimizing the rendering of parallel tool calls in the terminal scroll buffer.

Guidance

  • Review the code responsible for rendering the terminal output to identify potential causes of duplication, such as incorrect handling of concurrent updates.
  • Verify that the issue is specific to the current version (2.1.101) by testing previous versions to confirm the regression.
  • Investigate the impact of the number of MCP servers and parallel tool calls on the rendering issue, as the problem may be exacerbated by heavy usage.
  • Consider implementing a rendering queue or buffer to manage concurrent updates and prevent duplication of output.

Example

No code snippet is provided due to the lack of specific implementation details in the issue.

Notes

The issue is specific to the rendering of output in the terminal scroll buffer and does not affect the correctness of Claude's responses. The problem may be related to the handling of concurrent updates, and addressing this issue will require careful review of the rendering code.

Recommendation

Apply a workaround by reducing the number of parallel tool calls or MCP servers connected during session startup, as this may mitigate the rendering issue until a 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