Ctrl-D unexpectedly terminates session instead of deleting characters in macOS

Resolved 💬 11 comments Opened May 10, 2025 by FMs-sugiyama Closed Mar 1, 2026

# 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

  1. Start Claude Code CLI with claude command
  2. Begin typing a prompt
  3. Position cursor within the text
  4. Press Ctrl-D
  5. Observe that the session terminates instead of deleting a character

View original on GitHub ↗

This issue has 11 comments on GitHub. Read the full discussion on GitHub ↗