Skip to content

Allow disabling/remapping the "Ctrl+C twice to exit" behavio #4394

Description

@flemmingJahn2

Describe the feature or problem you'd like to solve

Feature request: Allow disabling/remapping the "Ctrl+C twice to exit" behavior. I frequently use Ctrl+C out of habit (from other terminal tools) for two purposes: (1) cancelling an in-progress operation, and (2) copying selected text. In both cases, a second incidental Ctrl+C press exits the CLI entirely and loses my session context. This is especially disruptive since Ctrl+C for copy is a standard OS/terminal convention outside this CLI. Suggest adding a setting (e.g.,  /settings set ctrlCExit false ) to disable exit-on-double-Ctrl+C, keeping Ctrl+C available for cancel/copy, with Ctrl+D remaining as the explicit shutdown key.

Proposed solution

No response

Example prompts or workflows

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:configurationConfig files, instruction files, settings, and environment variablesarea:input-keyboardKeyboard shortcuts, keybindings, copy/paste, clipboard, mouse, and text input

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions