github / github/copilot-cli

Prioritize clearing the typed prompt over canceling an active operation when pressing Ctrl+C

Offen
#1,961 0 Kommentare 2 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
area:input-keyboard
Vorherrschende Sprache
Shell
Sterne
11.2k
Forks
1.9k
Ø Merge
14 Std. 16 Min.
Gemergte PRs (30 T.)
6

Beschreibung

### Describe the feature or problem you'd like to solve

Prioritize clearing the typed prompt over canceling an active operation when pressing Ctrl+C

### Proposed solution

Currently:
• If an operation is running, Ctrl+C cancels the operation.
• If no operation is running, Ctrl+C clears the typed prompt.

In practice, it’s common to have a partially typed prompt while an operation is still running. When that happens, pressing Ctrl+C cancels the operation first, and only a second Ctrl+C clears the prompt.

A more helpful UX would be:
• If the prompt buffer is non-empty → Ctrl+C clears the prompt.
• Otherwise, if an operation is running → Ctrl+C cancels the operation.

This would let users quickly discard an in-progress prompt without accidentally interrupting the running task.

### Example prompts or workflows

_No response_

### Additional context

_No response_

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.