claude-code - 💡(How to fix) Fix [Bug] Claude responses contain repeated text sections requiring excessive scrollback [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#52020Fetched 2026-04-23 07:38:41
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
1
Author
Timeline (top)
labeled ×3commented ×1

Error Message

[{"error":"Error: NON-FATAL: Lock acquisition failed for /home/alexandre/.local/share/claude/versions/2.1.117 (expected in multi-process scenarios)\n at Dn$ (/$bunfs/root/src/entrypoints/cli.js:2756:2177)\n at tq6 (/$bunfs/root/src/entrypoints/cli.js:2756:1257)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T12:39:45.266Z"},{"error":"Error: console.error: [bun] Warning: ws.WebSocket 'unexpected-response' event is not implemented in bun\n at K (/$bunfs/root/src/entrypoints/cli.js:525:12055)\n at emitWarning (ws:43:42)\n at #onOrOnce (ws:170:18)\n at ps$ (/$bunfs/root/src/entrypoints/cli.js:3856:4688)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T14:02:11.274Z"}]

Code Example

[{"error":"Error: NON-FATAL: Lock acquisition failed for /home/alexandre/.local/share/claude/versions/2.1.117 (expected in multi-process scenarios)\n    at Dn$ (/$bunfs/root/src/entrypoints/cli.js:2756:2177)\n    at tq6 (/$bunfs/root/src/entrypoints/cli.js:2756:1257)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T12:39:45.266Z"},{"error":"Error: console.error: [bun] Warning: ws.WebSocket 'unexpected-response' event is not implemented in bun\n    at K (/$bunfs/root/src/entrypoints/cli.js:525:12055)\n    at emitWarning (ws:43:42)\n    at #onOrOnce (ws:170:18)\n    at ps$ (/$bunfs/root/src/entrypoints/cli.js:3856:4688)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T14:02:11.274Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description I noticed that many times in Claude's responses, it repeats the last part of its answer, including the prompt bar UI, several times in a roll. It is jarring having to scrollback over the same text over, and over again to get to the previous part. I'm using terminator, so I don't know if this is an issue on my side or claude's.

Environment Info

  • Platform: linux
  • Terminal: vte-based
  • Version: 2.1.117
  • Feedback ID: 92bc9329-73da-4eee-b07e-83c50c9019e7

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /home/alexandre/.local/share/claude/versions/2.1.117 (expected in multi-process scenarios)\n    at Dn$ (/$bunfs/root/src/entrypoints/cli.js:2756:2177)\n    at tq6 (/$bunfs/root/src/entrypoints/cli.js:2756:1257)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T12:39:45.266Z"},{"error":"Error: console.error: [bun] Warning: ws.WebSocket 'unexpected-response' event is not implemented in bun\n    at K (/$bunfs/root/src/entrypoints/cli.js:525:12055)\n    at emitWarning (ws:43:42)\n    at #onOrOnce (ws:170:18)\n    at ps$ (/$bunfs/root/src/entrypoints/cli.js:3856:4688)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T14:02:11.274Z"}]

extent analysis

TL;DR

The issue of repeated text in Claude's responses may be related to a locking mechanism or WebSocket implementation, and checking the locking file or updating the WebSocket handling could potentially resolve the issue.

Guidance

  • Investigate the locking mechanism for the file /home/alexandre/.local/share/claude/versions/2.1.117 to see if it's causing the repetition, possibly by checking file permissions or lock acquisition logic.
  • Look into the WebSocket implementation, specifically the 'unexpected-response' event, to determine if it's contributing to the repeated text issue.
  • Consider testing Claude's responses in a different terminal or environment to isolate if the issue is specific to the vte-based terminal or Linux platform.
  • Review the error logs for any patterns or correlations between the errors and the repeated text issue.

Example

No specific code snippet can be provided without more context, but checking the cli.js file at lines 2756 and 3856 might offer insights into the locking and WebSocket handling mechanisms.

Notes

The provided errors suggest a potential issue with locking and WebSocket handling, but without more information about Claude's internal workings or the specific conditions under which the repetition occurs, it's challenging to provide a definitive fix.

Recommendation

Apply workaround: Given the uncertainty around the root cause, applying a workaround such as testing in a different environment or terminal, or potentially modifying the locking mechanism, might be the most feasible next step. This approach allows for further diagnosis without waiting for a potential update or fix.

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] Claude responses contain repeated text sections requiring excessive scrollback [1 comments, 2 participants]