[BUG]
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Error: write EPIPE
at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:87:19)
at WriteWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
errno: -32,
code: 'EPIPE',
syscall: 'write'
}
Mac OS. Bash terminal (built-in terminal). Have updated to Claude Code v2.1.2 - note also that version v2.0 had this issue also. Note in addition that as I file this bug report in Claude Code, I cannot see my cursor - maybe provides a clue? I'm using node version v22.14.0 and npm 10.9.2. The crashes occur both when Claude is working, and sometimes when Claude is just sitting idle.
(Tried to submit through claude code terminal itself, got the error: Could not submit feedback. Please try again later.)
What Should Happen?
Should not crash. Try catch should be used with error recovery.
Error Messages/Logs
Error: write EPIPE
at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:87:19)
at WriteWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
errno: -32,
code: 'EPIPE',
syscall: 'write'
}
Steps to Reproduce
Use claude code on my laptop to do anything at all, or even nothing at all. It will likely crash within 5 to 10 minutes.
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
I didn't have this problem with earlier versions, I think pre v2.0
Claude Code Version
2.1.2
Platform
AWS Bedrock
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 7 comments on GitHub. Read the full discussion on GitHub ↗