[FEATURE] Add configuration option to exit with single Ctrl+D press

Resolved 💬 3 comments Opened Jan 22, 2026 by jrabasco Closed Feb 28, 2026

Preflight Checklist

  • [x] I have searched existing requests and this feature hasn't been requested yet
  • [x] This is a single feature request (not multiple features)

Problem Statement

Currently, Claude Code requires pressing Ctrl+D twice to exit the interactive session. While this safety mechanism helps prevent accidental exits, it would be helpful to have a configuration option to allow exiting with a single Ctrl+D press for users who prefer this behavior.

Current Behavior:

  • Ctrl+D must be pressed twice to exit
  • This is hardcoded and not configurable

Proposed Solution

Requested Feature:
Add a configuration setting (e.g., in settings.json) such as:
{
"exitOnSingleEOF": true
}

Alternative Solutions

_No response_

Priority

Medium - Would be very helpful

Feature Category

CLI commands and flags

Use Case Example

_No response_

Additional Context

_No response_

View original on GitHub ↗

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