Ctrl-D unexpectedly terminates session instead of deleting characters in macOS
Ctrl-D unexpectedly terminates session instead of deleting characters in macOS
Description
When using Claude Code CLI on macOS, pressing Ctrl-D unexpectedly terminates the entire session instead of deleting characters forward as it normally would in standard macOS terminals.
Expected Behavior
Ctrl-D should delete the character at the cursor position (forward delete), matching standard macOS terminal behavior.
Current Behavior
Pressing Ctrl-D immediately terminates the Claude Code session, causing loss of context and requiring restart.
Environment Information
- OS: macOS 15.4.1 (Sequoia)
- Terminal: xterm-256color (Node.js based terminal emulator)
- Claude Code version: 0.2.107 (Claude Code)
- Shell: zsh
Additional Information
This behavior is disruptive to the normal workflow as many macOS users rely on Ctrl-D for forward deletion. The termination happens without warning or confirmation, potentially causing loss of work.
Steps to Reproduce
- Start Claude Code CLI with
claudecommand - Begin typing a prompt
- Position cursor within the text
- Press Ctrl-D
- Observe that the session terminates instead of deleting a character
This seems to be a regression from the fix applied in #960. It also impacts platform:linux
This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.
I have just encountered this several times today.
Claude Code v2.0.65 MacOS 14.5 Iterm2
Me too
Can confirm there is a regression here recently.