claude-code - 💡(How to fix) Fix Same assistant response rendered 16 times in terminal for a single user message [2 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#53363Fetched 2026-04-26 05:17:43
View on GitHub
Comments
2
Participants
2
Timeline
6
Reactions
0
Author
Timeline (top)
labeled ×4commented ×2
RAW_BUFFERClick to expand / collapse

Environment

  • Claude Code version: 2.1.119
  • Platform: macOS Darwin 24.6.0
  • Shell: zsh in macOS Terminal (not iTerm2, not tmux — confirmed neither was running)
  • Model: claude-sonnet-4-6 (1M context)

What happened

During a normal session, a single user message produced one assistant turn that was rendered 16 times in the terminal. The repeated block included tool output (a large grep result across a docs directory) followed by the assistant's analysis.

The turn that repeated was triggered by this Bash tool call:

``` grep -rn "christacarmen-ai" /Users/trust/Dev/tessera/CLAUDE.md /Users/trust/Dev/tessera/_docs/ ```

That command produced approximately 40 lines of output across many files. Immediately after, the assistant composed a multi-paragraph categorized response. That entire block — tool output + response — appeared 16 times.

Relevant configuration

Two superpowers plugins were loaded simultaneously, both registering a SessionStart hook with "matcher": "startup|resume|clear|compact":

  • superpowers@superpowers-marketplace v4.3.1 (since removed)
  • superpowers@claude-plugins-official v5.0.7

Global settings at the time:

  • "verbose": true
  • "alwaysThinkingEnabled": true

Hypothesis

The large grep output may have triggered a context compaction event. Both plugins registered on the compact matcher and fired simultaneously. It is unknown whether the 16x repetition is a display/rendering bug (one API call, output shown 16 times) or 16 actual API calls — the raw stream log was not captured.

Impact

  • Unpredictable token usage (16x for that turn)
  • No way for the user to distinguish rendering artifact from actual repeated inference

Steps to reproduce

Not yet reproducible on demand. Likely requires:

  1. Two plugins with SessionStart hooks registered on compact
  2. A large Bash tool result (40+ lines) triggering compaction
  3. verbose: true

The duplicate plugin has been removed. A session log capture strategy (claude 2>&1 | tee /tmp/claude-session.log) has been suggested to isolate whether this is rendering or inference repetition if it recurs.

extent analysis

TL;DR

The issue can be mitigated by removing or modifying the SessionStart hooks registered on the compact matcher in the superpowers plugins.

Guidance

  • Investigate the SessionStart hooks in the superpowers@superpowers-marketplace and superpowers@claude-plugins-official plugins to determine if they are causing the repeated rendering or inference.
  • Verify if the issue is a rendering bug or actual repeated API calls by capturing the raw stream log using the suggested claude 2>&1 | tee /tmp/claude-session.log strategy.
  • Consider modifying the global settings, such as setting "verbose": false or "alwaysThinkingEnabled": false, to see if it affects the issue.
  • Test the scenario with a single plugin registered on the compact matcher to isolate the cause.

Example

No code snippet is provided as the issue is more related to plugin configuration and interaction.

Notes

The issue is not yet reproducible on demand, and the root cause is still uncertain. Further investigation and logging are required to determine the exact cause and develop a permanent fix.

Recommendation

Apply workaround: Remove or modify the SessionStart hooks registered on the compact matcher in the superpowers plugins, as this is the most likely cause of the issue.

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