github / github/copilot-cli

Failed to resume session: Error: Session file is corrupted

Aberta
#1,864 1 comentário 8 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

I have had a powe-loss during an active copilot session now it can't be resumed:

> Failed to resume session: Error: Session file is corrupted (line 7103: SyntaxError: Unexpected token '', ""... is not valid JSON)

Only think one can do is to ESC but there is no recovery possible!

### Affected version

_No response_

### Steps to reproduce the behavior

_No response_

### Expected behavior

Copilot uses some kind of protect the file from corruption in such cases, e.g. first writing a new file before deleting the existing one and a way to recover from such failures by fallback to a backup copy.

### Additional context

_No response_

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

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