github / github/copilot-cli

CTRL+C is a bit too efficient - cancel current running command - not whole session

Open
#3,198 0 comments 0 reactions 0 assignees View on GitHub
area:input-keyboard
Dominant language
Shell
Stars
11.2k
Forks
1.9k
Avg merge
14h 16m
Merged PRs (30d)
6

Description

### Describe the bug

- stop prompting to use "copilot fg" when I accidentally exit copilot - it does not work. And please - try to find a
way to show "Are you sure you want to exit" when a ctrl+c is entered too many times - cancelling a command should not be
treated as an exit - please use CTRL+D for exit

### Affected version

GitHub Copilot CLI 1.0.43.

### Steps to reproduce the behavior

CTRL+C too many times

### Expected behavior

Just cancel the running command

Use CTRL+D for exit

Stop issuing prompt "copilot fg" to resume - it does nothing

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

Reproduce the repeated CTRL+C behavior in GitHub Copilot CLI 1.0.43 and trace the command-cancellation, session-exit, and "copilot fg" prompt handling. Done means CTRL+C cancels only the running command, repeated presses provide an exit confirmation rather than exiting immediately, CTRL+D exits, and the misleading resume prompt is removed.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.