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.

貢獻指南

開啟貢獻指南

研究方向

沒有提到任何檔案或測試的名稱。首先,在 zsh 下透過叫出先前的 prompt、編輯它並按 Enter,在 Copilot CLI 中重現此問題;然後追蹤 prompt 歷程的處理。完成標準是:編輯過的 prompts,包括完全清空的 prompts,仍可在歷程記錄中使用。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
shell, zsh
領域
cli
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
冷清
描述清晰度
描述清楚
新手友好度
68/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。