copilot-cli icon indicating copy to clipboard operation
copilot-cli copied to clipboard

Control-D to exit copilot cli should only work on an empty input line

Open st3fan opened this issue 1 month ago • 1 comments

Describe the bug

A bunch of times now I have navigated to a place in my prompt to delete a few characters with Control-D and had Copilot CLI immediately exit. I see in the documentation that Control-D is mapped to exit, but that should really only happen on an empty line and not when I am editing a prompt in the middle.

(It is quite maddening that this happens .. becuase the CLI follows "readline compatible" key combinations pretty well, except for control-d, and when you accidentally hit control-d a few times and suddenly not just CLI exits but I also exit my shell and close the window ... )

Affected version

0.0.354 Commit: 076bd172b

Steps to reproduce the behavior

Hit control-d anywhere in a prompt to delete a character.

Expected behavior

When I am editing a prompt, control-d should just delete a character. Not exit copilot.

Additional context

No response

st3fan avatar Nov 12 '25 19:11 st3fan

Duplicate of #423

Lenbok avatar Nov 19 '25 03:11 Lenbok