Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Session file is corrupted - Invalid literal value

Open
#1,007 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Quiet
Tech stack
csharp
Domain
tooling

Research direction

Start at the reported SessionFeature.LoadSession call in SessionFeature.Lifecycle.cs line 215 and trace the SDK's ResumeSessionAsync path. Inspect the corrupted session data around line 355, especially the ephemeral field, and determine a reproducible failure or a clear handling fix for invalid session files.

Written by the indexing model from the issue text.

Description

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
Dominant language
Java
Stars
10.5k
Forks
1.5k
Avg merge
1d 9h
Merged PRs (30d)
131

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from github/copilot-sdk

All issues in github/copilot-sdk

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.