github / github/copilot-cli

/undo undid too much in a file

未關閉
#2,757 0 則留言 2 個 reaction 已指派 0 人 在 GitHub 檢視
area:sessions area:tools
主要語言
Shell
星號
11.2k
分支
1.9k
平均合併
14 小時 16 分鐘
30 天內合併 PR
6

描述

### Describe the bug

I was in the process of working on something with copilot CLI, had some uncommitted changes and then asked for another change. That last change didn't actually make sense, so I used `/undo` while the change was still executing (I think it was compiling). The state of the conversation reverted correctly, but the state of the file didn't: it reverted to no uncommitted changes.

I was able to restore the changes by telling copilot about it.

### Affected version

1.0.27

### Steps to reproduce the behavior

_No response_

### Expected behavior

_No response_

### Additional context

_No response_

貢獻指南

開啟貢獻指南

研究方向

先使用 Copilot CLI 1.0.27 重現問題:保留未提交的變更,開始另一項變更,並在其進行編譯時呼叫 `/undo`。檢查 `/undo` 流程,並確認完成後會保留先前未提交的變更,而只復原最新的變更。

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

評估

技術堆疊
shell
領域
cli
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
冷清
描述清晰度
需要釐清
新手友好度
38/100

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

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