github / github/copilot-cli

/rewind reports nothing to rewind in forked sessions

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

描述

### describe the bug

after forking a session with `/fork`, running `/rewind` inside the forked session reports:

```text
nothing to rewind yet. start a conversation first.
```

this happens even though the forked session visibly contains the copied conversation history from the original session.

### steps to reproduce

1. create a clean git repository.
2. start copilot cli with experimental mode enabled.
3. ask copilot to make a small file change.
4. run `/fork`.
5. in the forked session, run `/rewind`.

### expected behavior

`/rewind` should either rewind the last turn available in the forked session, or clearly explain that rewind history is intentionally not copied into forked sessions.

### actual behavior

the forked session shows:

```text
nothing to rewind yet. start a conversation first.
```

### notes

i reproduced this locally with copilot cli 1.0.46 in a temporary git repository. this was originally noticed by @seanf while discussing #2058.

貢獻指南

開啟貢獻指南

研究方向

相關入口是 /fork 和 /rewind 命令。在啟用實驗模式的乾淨儲存庫中重現該序列,然後追蹤 fork 工作階段如何公開對話記錄與 rewind 記錄。完成的標準是:/rewind 要麼回退可用的上一輪,要麼明確回報 rewind 記錄未被複製。

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

評估

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

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

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