github / github/copilot-cli

Deleting a session in the app doesn't remove it from session-store.db / VS Code Copilot Chat history (orphaned session)

Aberta
#4,094 0 comentários 0 reações 0 responsáveis Ver no GitHub
area:sessions
Linguagem predominante
Shell
Estrelas
11.2k
Forks
1.9k
Merge médio
14h 16min
PRs com merge (30d)
6

Descrição

### 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

Guia de contribuição

Abrir o guia de contribuição

Direção de pesquisa

Comece pelo fluxo de exclusão de sessões do app e rastreie como ele atualiza data.db, session-store.db e seu search_index, além de vscode.session.metadata.cache.json. Reproduza com uma sessão local e, em seguida, verifique se a exclusão remove a linha armazenada e se a sessão não aparece mais no histórico do VS Code Copilot Chat depois de reiniciar os dois apps.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
vscode
Domínio
cli, desktop-dev
Tipo de issue
Bug
Dificuldade
4/5
Tempo estimado
3-5 dias
Status de atividade
Pouca atividade
Clareza
Razoavelmente clara
Facilidade para iniciantes
48/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.