Skip to content

[FEATURE] Leave Claude with single Ctrl+D #14027

Description

@andreas-gruenbacher

Problem Statement

Right now, the Claude command line can be exited by pressing Ctrl+D twice in quick succession. (After the first Ctrl+D, Claude says "Press Ctrl-D again to exit".) This is rather annoying, and it isn't how other similar utilities work. If you get the timing slightly wrong, you can accidentally end up exiting the parent shell as well. A single Ctrl+D should be enough.

Proposed Solution

Can double Ctrl+D either be removed or made configurable?

Claude itself suggests to run "claude config set confirm_exit false" to disable double Ctrl+D, but this config option doesn't seem to exist.

Priority

Low - Nice to have

Feature Category

CLI commands and flags

Use Case Example

I'm always exiting Claude with Ctrl+D like I do with all other shells and shell-like utilities like bash, gdb, python. It's a very normal thing for command line users.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions