github / github/copilot-cli

Failed to resume session: Error: Session file is corrupted

オープン
#1,864 コメント 1 件 リアクション 8 件 担当者 0 名 GitHub で見る
area:sessions
主要言語
Shell
スター
11.2k
フォーク
1.9k
平均マージ
14時間 16分
マージ済み PR(30日)
6

説明

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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。