github / github/copilot-cli

Previous prompts lost after editing

未关闭
#3,926 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
area:input-keyboard
主要语言
Shell
星标
11.2k
派生
1.9k
平均合并
14 小时 16 分钟
30 天内合并 PR
6

描述

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

贡献指南

打开贡献指南

调研方向

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.

由索引模型根据 Issue 内容生成。

评估

技术栈
shell, zsh
领域
cli
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
冷清
描述清晰度
描述清楚
新手友好度
68/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。