github / github/copilot-sdk

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
bug
Ngôn ngữ chính
Java
Star
10.5k
Fork
1.5k
Merge trung bình
1 ngày 11 giờ
Pull request đã merge (30 ngày)
127

Mô tả

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
```

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.