claude-code - 💡(How to fix) Fix [Bug] Output duplication and formatting issues with Claude Opus model

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…

Error Message

[{"error":"Error: The socket connection was closed unexpectedly. For more information, pass verbose: true in the second argument to fetch()\n at from (/$bunfs/root/src/entrypoints/cli.js:118:55420)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:126:15557)\n at emitError (node:events:43:23)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:125:1202)\n at emitError (node:events:43:23)\n at <anonymous> (node:_http_client:251:22)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/src/entrypoints/cli.js:128:2516)\n at async AM$ (/$bunfs/root/src/entrypoints/cli.js:438:51192)\n at async gG (/$bunfs/root/src/entrypoints/cli.js:437:4760)\n at async Ni6 (/$bunfs/root/src/entrypoints/cli.js:7587:1706)\n at async FT8 (/$bunfs/root/src/entrypoints/cli.js:7587:3538)\n at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:7587:7426)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-29T16:50:02.114Z"}]

Code Example

[{"error":"Error: The socket connection was closed unexpectedly. For more information, pass `verbose: true` in the second argument to fetch()\n    at from (/$bunfs/root/src/entrypoints/cli.js:118:55420)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:126:15557)\n    at emitError (node:events:43:23)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:125:1202)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:251:22)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:128:2516)\n    at async AM$ (/$bunfs/root/src/entrypoints/cli.js:438:51192)\n    at async gG (/$bunfs/root/src/entrypoints/cli.js:437:4760)\n    at async Ni6 (/$bunfs/root/src/entrypoints/cli.js:7587:1706)\n    at async FT8 (/$bunfs/root/src/entrypoints/cli.js:7587:3538)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:7587:7426)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-29T16:50:02.114Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description claude code is dupplicating and not properly formatting the outpout, using claude opus

Environment Info

  • Platform: linux
  • Terminal: tmux
  • Version: 2.1.153
  • Feedback ID: 5fd19906-b2b3-47e8-a8bf-0d4dfcfcf02b

Errors

[{"error":"Error: The socket connection was closed unexpectedly. For more information, pass `verbose: true` in the second argument to fetch()\n    at from (/$bunfs/root/src/entrypoints/cli.js:118:55420)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:126:15557)\n    at emitError (node:events:43:23)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:125:1202)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:251:22)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:128:2516)\n    at async AM$ (/$bunfs/root/src/entrypoints/cli.js:438:51192)\n    at async gG (/$bunfs/root/src/entrypoints/cli.js:437:4760)\n    at async Ni6 (/$bunfs/root/src/entrypoints/cli.js:7587:1706)\n    at async FT8 (/$bunfs/root/src/entrypoints/cli.js:7587:3538)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:7587:7426)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-29T16:50:02.114Z"}]

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] Output duplication and formatting issues with Claude Opus model