Deleting a session in the app doesn't remove it from session-store.db / VS Code Copilot Chat history (orphaned session)
- 主要語言
- Shell
- 星號
- 11.2k
- 分支
- 1.9k
- 平均合併
- 14 小時 16 分鐘
- 30 天內合併 PR
- 6
描述
### Describe the bug
Deleting a session from the Copilot app UI does not propagate the deletion to the shared ~/.copilot session store. The session row remains fully intact in data.db, session-store.db (including search_index), and vscode.session.metadata.cache.json. Because the VS Code Copilot extension reads this same shared store, the "deleted" session keeps appearing in VS Code's Copilot Chat history panel.
This appears to be the same underlying "delete doesn't prune session-store.db" root cause reported in #3811 (which surfaces via /chronicle insights), just with a different symptom (VS Code history panel). As I'm experiencing it in the App I made it a different bug.
### Affected version
GitHub Copilot CLI 1.0.69
### Steps to reproduce the behavior
1. Create a new session using the "New session" button on a repo.
2. Set it to local (not worktree) and ask it anything.
3. The session now appears in both the Copilot app and the VS Code Copilot Chat history pane.
4. Delete the session from the app.
5. It remains in the VS Code chat history pane, with full chat history persisting after restarts even.
### Expected behavior
Deleting a session in the app should also remove it from the VS Code Copilot Chat history pane, so it no longer appears (in either the app or VS Code) after deletion.
### Additional context
Operating system: Windows
貢獻指南
研究方向
從應用程式的工作階段刪除流程開始,追蹤它如何更新 data.db、session-store.db 及其 search_index,以及 vscode.session.metadata.cache.json。使用本機工作階段重現,然後確認刪除會移除已儲存的資料列,且在重新啟動兩個應用程式後,該工作階段不再出現在 VS Code Copilot Chat 記錄中。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- vscode
- 領域
- cli, desktop-dev
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 48/100