github / github/copilot-cli

Previous prompts lost after editing

Open
#3,926 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

Previous prompts are lost when editing them.

### Affected version

1.0.65

### Steps to reproduce the behavior

1. Go to a previous prompt (for example, using the up arrow)
2. Edit the prompt (clear it completely, or edit it partially)
3. Press enter

Original prompt is now lost. This is specially painful when the line was cleared completely.

### Expected behavior

Original prompt remains in history.

### Additional context

Ubuntu 24.04.4.
x86_64.
GNOME Terminal 3.52.0.
zsh 5.9.

Contributor guide

Open the contributing guide

Research direction

No files or tests are named. First reproduce the issue in Copilot CLI under zsh by recalling a previous prompt, editing it, and pressing Enter; then trace the prompt-history handling. Done means edited prompts, including completely cleared ones, remain available in history.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell, zsh
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.