Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Session file is corrupted - Invalid literal value

Đang mở
#1,007 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
38/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Ít trao đổi
Công nghệ
csharp
Lĩnh vực
tooling

Hướng nghiên cứu

Bắt đầu từ lệnh gọi SessionFeature.LoadSession được báo cáo trong dòng 215 của SessionFeature.Lifecycle.cs và lần theo đường dẫn ResumeSessionAsync của SDK. Kiểm tra dữ liệu phiên bị hỏng quanh dòng 355, đặc biệt là trường ephemeral, và xác định một lỗi có thể tái hiện hoặc một cách sửa rõ ràng để xử lý các tệp phiên không hợp lệ.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug

I'm using the .NET SDK, a few times now, after updating the NuGet version, some (not all) previous sessions become corrupt. This is the error i get when resuming a session -

System.IO.IOException: Communication error with Copilot CLI: Request session.resume failed with message: Session file is corrupted (line 355: ephemeral: Invalid literal value, expected true)
 ---> StreamJsonRpc.RemoteInvocationException: Request session.resume failed with message: Session file is corrupted (line 355: ephemeral: Invalid literal value, expected true)
   at StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](RequestId id, String targetName, IReadOnlyList`1 arguments, IReadOnlyList`1 positionalArgumentDeclaredTypes, IReadOnlyDictionary`2 namedArgumentDeclaredTypes, CancellationToken cancellationToken, Boolean isParameterObject)
   at GitHub.Copilot.SDK.CopilotClient.InvokeRpcAsync[T](JsonRpc rpc, String method, Object[] args, StringBuilder stderrBuffer, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at GitHub.Copilot.SDK.CopilotClient.InvokeRpcAsync[T](JsonRpc rpc, String method, Object[] args, StringBuilder stderrBuffer, CancellationToken cancellationToken)
   at GitHub.Copilot.SDK.CopilotClient.InvokeRpcAsync[T](JsonRpc rpc, String method, Object[] args, CancellationToken cancellationToken)
   at GitHub.Copilot.SDK.CopilotClient.ResumeSessionAsync(String sessionId, ResumeSessionConfig config, CancellationToken cancellationToken)
   at App.Features.Sessions.SessionFeature.LoadSession(String sessionId) in D:\a\App\App\src\App\Features\Sessions\SessionFeature.Lifecycle.cs:line 215
Ngôn ngữ chính
Java
Star
10.5k
Fork
1.5k
Merge trung bình
1 ngày 9 giờ
Pull request đã merge (30 ngày)
131

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

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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của github/copilot-sdk

Tất cả issue của github/copilot-sdk

Issue tương tự

Thêm issue về Java

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.