github / github/copilot-cli

Session data loss when agency copilot closes

Open
#3,553 0 comments 0 reactions 0 assignees View on GitHub
area:sessions
Dominant language
Shell
Stars
11.2k
Forks
1.9k
Avg merge
14h 16m
Merged PRs (30d)
6

Description

### Describe the bug

I'll be in the middle of an hours-long session and for one reason or another, agency closes. Maybe I close it, maybe the codespace turns off. But the result is that when I immediately try to resume, the session is wiped. This issue has been present for some time but is sporadic enough that I thought it was fixed.

### Affected version

GitHub Copilot CLI 1.0.55-7

### Steps to reproduce the behavior

1. run `agency copilot`
2. Be in any long lived session. In my case this was a fresh session from when I started copilot
3. Close agency copilot either with ctrl+c or another command. In my case copilot was actively processing a command
4. Restart agency copilot
5. /resume, observe session is gone

### Expected behavior

Session should not be deleted

### Additional context

- OS: Linux codespaces-b92d36 6.8.0-1052-azure 58~22.04.1-Ubuntu SMP Thu Mar 26 05:02:21 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux
- Shell: zsh

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.