github / github/copilot-cli

Failed to resume session: Error: Session file is corrupted

Đang mở
#1,864 1 bình luận 8 reaction 0 người được giao Xem trên GitHub
area:sessions
Ngôn ngữ chính
Shell
Star
11.2k
Fork
1.9k
Merge trung bình
14 giờ 16 phút
Pull request đã merge (30 ngày)
6

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.