github / github/copilot-cli

Recent session disappears after Ctrl+Z/restart and local/cloud IDs diverge

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

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

area:sessions
主要言語
Shell
スター
11.2k
フォーク
1.9k
平均マージ
14時間 16分
マージ済み PR(30日)
6

説明

Copilot CLI version

1.0.81-4

Environment

Linux, interactive Copilot CLI.

Problem

After accidentally pressing Ctrl+Z, Copilot CLI exited/suspended. After reopening Copilot, the session I had just been working in was missing from the recent-session list and could not initially be recovered by name. I have also seen the same behavior after Copilot crashes and is restarted.

Recovery took more than 10 minutes of searching session history. The same conversation appeared under different local and cloud session IDs, and the cloud ID was not accepted by /resume (No session, task, or name matched ...). Only after querying the local session database separately could the locally resumable ID be identified.

Reproduction
  1. Work in a long-running Copilot CLI session with many turns.
  2. Press Ctrl+Z accidentally (or let the CLI crash).
  3. Reopen Copilot CLI.
  4. Open /resume or search recent sessions.
  5. Observe that the session that was active immediately before termination is absent.
  6. A synced/cloud history lookup may return the conversation under a different ID, but /resume <cloud-id> reports no match.
Expected behavior

Ctrl+Z/restart/crash should preserve the current session and make it immediately visible and resumable. Local and synced history should resolve to one stable resumable session identity, or /resume should map a synced ID to its local record.

Actual behavior

The newest working session disappears from normal session discovery. Search/recovery can instead surface a later “find my missing session” conversation, and cloud results may use a non-resumable ID different from the local record. This makes the original session look lost even though its turns still exist locally.

Additional notes

This happened more than once on the same day. The CLI help documents Ctrl+Z as “suspend,” so reopening after suspension should not orphan or hide the active session. A useful diagnostic would be to log session checkpoint persistence, local/cloud ID reconciliation, and indexing completion during shutdown/startup.

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

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

はじめの一歩

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

調査の方向性

長時間実行されているインタラクティブな Copilot CLI セッションを一時停止または再起動して問題を再現し、その後、セッションチェックポイントの永続化、最近のセッションの検出、シャットダウンおよび起動中のローカル ID とクラウド ID の突き合わせを調査します。Ctrl+Z またはクラッシュの後も最新のセッションが表示され、再開可能であり、安定した ID が維持されるか、同期された ID からローカルレコードへの対応付けが機能していれば完了です。

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

評価

技術スタック
shell
領域
cli
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
活発
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

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

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