claude-code - 💡(How to fix) Fix [Bug] Selection deletion only removes single character in flicker-free mode [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#46709Fetched 2026-04-12 13:35:07
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Participants
Timeline (top)
labeled ×3

Error Message

[{"error":"RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded\n at Socket.onChildStdout (node:child_process:484:14)\n at Socket.emit (node:events:508:28)\n at addChunk (node:internal/streams/readable:559:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)\n at Readable.push (node:internal/streams/readable:390:5)\n at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)","timestamp":"2026-04-11T16:39:23.120Z"}]

Code Example

[{"error":"RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded\n    at Socket.onChildStdout (node:child_process:484:14)\n    at Socket.emit (node:events:508:28)\n    at addChunk (node:internal/streams/readable:559:12)\n    at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)\n    at Readable.push (node:internal/streams/readable:390:5)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)","timestamp":"2026-04-11T16:39:23.120Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description In flicker-free mode, selecting text with mouse and pressing Delete should delete the selection, but it only deletes one character at a time — expected editor-like behavior.

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.1.96
  • Feedback ID: 7a27349f-0c19-4cb5-94c4-957905489fcb

Errors

[{"error":"RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded\n    at Socket.onChildStdout (node:child_process:484:14)\n    at Socket.emit (node:events:508:28)\n    at addChunk (node:internal/streams/readable:559:12)\n    at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)\n    at Readable.push (node:internal/streams/readable:390:5)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)","timestamp":"2026-04-11T16:39:23.120Z"}]

extent analysis

TL;DR

The issue can be mitigated by adjusting the maxBuffer length for child processes to accommodate larger output.

Guidance

  • The error message indicates a maxBuffer length exceeded error, suggesting that the current buffer size is too small to handle the output.
  • To verify the issue, try reproducing the error with a smaller selection of text to see if the deletion works as expected.
  • Consider increasing the maxBuffer length for child processes to a larger value to accommodate the output.
  • Review the terminal and platform settings to ensure that they are properly configured for flicker-free mode.

Example

No code snippet is provided as it is not clearly supported by the issue.

Notes

The provided error message suggests a Node.js environment, but the issue description mentions a terminal and platform, indicating a potential interaction between the two. The solution may involve adjusting settings in either the Node.js environment or the terminal/platform configuration.

Recommendation

Apply workaround: Increase the maxBuffer length for child processes to mitigate the issue, as the root cause is likely related to the buffer size limitation.

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