claude-code - 💡(How to fix) Fix [Bug] Copy-paste functionality corrupts text with >20-30 lines; terminal display issue after notepad interaction [1 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#48534Fetched 2026-04-16 06:57:29
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Author
Participants
Timeline (top)
labeled ×3

Error Message

[{"error":"AggregateError\n at Wv.from (file:///C:/Users/YONG/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:108:7836)\n at mN.<anonymous> (file:///C:/Users/YONG/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:116:12672)\n at mN.emit (node:events:530:35)\n at e91.<computed> (file:///C:/Users/YONG/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:115:1120)\n at ClientRequest.emit (node:events:518:28)\n at emitErrorEvent (node:_http_client:104:11)\n at TLSSocket.socketErrorListener (node:_http_client:518:5)\n at TLSSocket.emit (node:events:518:28)\n at emitErrorNT (node:internal/streams/destroy:170:8)\n at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n at eU6.request (file:///C:/Users/YONG/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:118:2450)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async mh1 (file:///C:/Users/YONG/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:509:3709)","timestamp":"2026-04-15T13:46:34.927Z"}]

Code Example

[{"error":"AggregateError\n    at Wv.from (file:///C:/Users/YONG/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:108:7836)\n    at mN.<anonymous> (file:///C:/Users/YONG/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:116:12672)\n    at mN.emit (node:events:530:35)\n    at e91.<computed> (file:///C:/Users/YONG/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:115:1120)\n    at ClientRequest.emit (node:events:518:28)\n    at emitErrorEvent (node:_http_client:104:11)\n    at TLSSocket.socketErrorListener (node:_http_client:518:5)\n    at TLSSocket.emit (node:events:518:28)\n    at emitErrorNT (node:internal/streams/destroy:170:8)\n    at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n    at eU6.request (file:///C:/Users/YONG/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:118:2450)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async mh1 (file:///C:/Users/YONG/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:509:3709)","timestamp":"2026-04-15T13:46:34.927Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description seems like after claude code v2.1.104, the copy and paste function does not work. copying and pasting a document with >20 or 30 lines trims and displays random sentences from the copied text. using ctrl + g to open the notepad is buggy as well. going back to claude code after notepad opens, the whole terminal becomes blank except for the field to type. once i typed a sentence and hit enter, the conversation with claude is then displayed. please fix this copy + paste functionality bug

Environment Info

  • Platform: win32
  • Terminal: null
  • Version: 2.1.104
  • Feedback ID: 074ebc9e-867c-47d0-8465-a5c5dba9e01e

Errors

[{"error":"AggregateError\n    at Wv.from (file:///C:/Users/YONG/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:108:7836)\n    at mN.<anonymous> (file:///C:/Users/YONG/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:116:12672)\n    at mN.emit (node:events:530:35)\n    at e91.<computed> (file:///C:/Users/YONG/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:115:1120)\n    at ClientRequest.emit (node:events:518:28)\n    at emitErrorEvent (node:_http_client:104:11)\n    at TLSSocket.socketErrorListener (node:_http_client:518:5)\n    at TLSSocket.emit (node:events:518:28)\n    at emitErrorNT (node:internal/streams/destroy:170:8)\n    at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n    at eU6.request (file:///C:/Users/YONG/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:118:2450)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async mh1 (file:///C:/Users/YONG/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:509:3709)","timestamp":"2026-04-15T13:46:34.927Z"}]

extent analysis

TL;DR

The copy and paste functionality issue in Claude Code v2.1.104 may be related to a bug introduced in the recent update, and a potential workaround could be to revert to a previous version or wait for a patch.

Guidance

  • The error message suggests an AggregateError occurring in the Wv.from function, which might be related to the copy and paste functionality.
  • To verify the issue, try copying and pasting a document with more than 20-30 lines in a previous version of Claude Code (e.g., v2.1.103) to see if the issue persists.
  • As a temporary workaround, users can try breaking down large documents into smaller chunks before copying and pasting.
  • The ctrl + g issue with opening Notepad and the terminal becoming blank may be related to the same underlying bug, so fixing the copy and paste issue might also resolve these problems.

Example

No code snippet is provided as the issue seems to be related to a specific version of Claude Code and its internal functionality.

Notes

The provided error message is quite verbose and points to a specific line in the cli.js file, but without access to the codebase or more context, it's difficult to provide a precise fix. The suggestions above are based on the information given and may not fully resolve the issue.

Recommendation

Apply workaround: Given the potential complexity of the issue and the lack of a clear fix, reverting to a previous version or waiting for a patch might be the most straightforward solution for now.

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