Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Session file is corrupted - Invalid literal value

オープン
#1,007 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
38/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
静か
技術スタック
csharp
領域
tooling

調査の方向性

SessionFeature.Lifecycle.cs の215行目にある報告された SessionFeature.LoadSession 呼び出しから開始し、SDK の ResumeSessionAsync パスを追跡します。355行目付近の破損したセッションデータ、特に ephemeral フィールドを調査し、再現可能な失敗または無効なセッションファイルを処理するための明確な修正を特定します。

索引モデルが issue の本文から書いたものです。

説明

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
主要言語
Java
スター
10.5k
フォーク
1.5k
平均マージ
1日 9時間
マージ済み PR(30日)
131

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

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

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

github/copilot-sdk のほかの issue

github/copilot-sdk の issue をすべて見る

似ている issue

Java の issue をもっと見る

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

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