github / github/copilot-cli

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

オープン
#1,961 コメント 0 件 リアクション 2 件 担当者 0 名 GitHub で見る
area:input-keyboard
主要言語
Shell
スター
11.2k
フォーク
1.9k
平均マージ
14時間 16分
マージ済み PR(30日)
6

説明

### 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_

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。