Terminal Rendering Crash: Unhandled ENOBUFS Error During Large Content Paste
Bug Description
There is a display bug that crashes Claude. I have seen it happen a couple of times. Basically, the terminal (inside Windsurf) starts scrolling wildly and won't stop. Scrolling the mouse, home/end, dragging the window, etc. don't stop it. I think this is how to recreate: 1) have a large amount of history in the window, 2) have the system be thinking, 3) type a message in the window, then paste some content (like console logs to go with your message), 4) watch the system blow up. Sometimes, I have seen this happen when Claude is going to display one of the 1,2,3 choice dialogs. This is an urgent bug as this completely kills your history.
node:events:485
throw er; // Unhandled 'error' event
^
Error: write ENOBUFS at afterWriteDispatched (node:internal/stream_base_commons:159:15) at writevGeneric (node:internal/stream_base_commons:142:3) at Socket._writeGeneric (node:net:969:11) at Socket._writev (node:net:978:8) at doWrite (node:internal/streams/writable:594:12) at clearBuffer (node:internal/streams/writable:773:5) at onwrite (node:internal/streams/writable:651:7) at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:105:10) Emitted 'error' event on WriteStream instance at: at emitErrorNT (node:internal/streams/destroy:170:8) at emitErrorCloseNT (node:internal/streams/destroy:129:3) at process.processTicksAndRejections (node:internal/process/task_queues:90:21) { errno: -55, code: 'ENOBUFS', syscall: 'write' }
Node.js v24.1.0
Environment Info
- Platform: darwin
- Terminal: windsurf
- Version: 1.0.35
- Feedback ID: d229201d-cdec-4abb-8f3b-e8af7635e13a
- OS: MacOS 15.5
Errors
[{"error":"Error: Command failed: security find-generic-password -a $USER -w -s \"Claude Code\"\nsecurity: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n\n at genericNodeError (node:internal/errors:983:15)\n at wrappedFn (node:internal/errors:537:14)\n at checkExecSyncError (node:child_process:892:11)\n at execSync (node:child_process:964:15)\n at TZ (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:700:3921)\n at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:622:9014\n at Q (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:526:17199)\n at VX (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:622:8160)\n at nS (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:622:7241)\n at f9 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:622:11408)","timestamp":"2025-06-29T12:10:34.016Z"}]