github / github/copilot-cli

Unable to find my previous copilot CLI sessions consistently.

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

描述

### Describe the bug

The one and very big frustration that I have with copilot CLI recently is not being able to resume my session that I just worked in the previous day.

For some reason when I use the `/resume`, `--resume` flag it shows many sessions but not all, the ones that I just worked yesterday don't show up.

I have to know ahead of time where was the cwd from that session (which is almost impossible given the new worktree feature, generating random branch / directory names, which normally is the cwd for the session.

Please allow the /resume local session having a `global local` option I don't have to care where that session started or what was last CWD.

### Affected version

v1.0.65

### Steps to reproduce the behavior

1. Start a session in a folder A
2. Generate the worktree (folder B)
3. Move the CWD to the new worktree (folder A -> folder B)
4. Do stuff.
5. Close copilot
6. Open copilot in folder A
7. Try to resume the session, it may not list there.

---

Check your .copilot\session-state\session-ids (order by the most recent created)

1. Open copilot in any folder
2. Open resume option
3. The local sessions list doesn't reflect the actual local sessions in the `.copilot` folder

### Expected behavior

copilot\session-state\session-ids should transparently be reflected by the /resume (local sessions)

### Additional context

_No response_

貢獻指南

開啟貢獻指南

研究方向

Start by reproducing the listed folder and worktree steps, then inspect `.copilot/session-state/session-ids` and compare its most recently created sessions with the `/resume` local sessions list. Done means sessions stored there are transparently reflected when Copilot is opened from the original folder.

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

評估

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

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

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