github / github/copilot-cli

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

Open
#4,394 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area:configuration area:input-keyboard
Dominant language
Shell
Stars
11.2k
Forks
1.9k
Avg merge
14h 16m
Merged PRs (30d)
6

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the CLI's Ctrl+C handling and the existing settings command or configuration entry point; no specific files or tests are named in the issue. Confirm how cancellation, copy-related Ctrl+C presses, double-press exit, and Ctrl+D shutdown currently interact, then verify that the behavior can be disabled or remapped without removing the explicit shutdown path.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.