github / github/copilot-cli

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

Aperta
#4,539 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

area:sessions
Lingua principale
Shell
Stelle
11.2k
Fork
1.9k
Merge medio
14h 16m
PR unite (30g)
6

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Riproduci il problema sospendendo o riavviando una sessione interattiva di Copilot CLI a esecuzione prolungata, quindi esamina la persistenza dei checkpoint della sessione, l’individuazione delle sessioni recenti e la riconciliazione degli ID locali/cloud durante l’arresto e l’avvio. Il lavoro è completato quando la sessione più recente rimane visibile e riprendibile dopo Ctrl+Z o un arresto anomalo, con un’identità stabile o una mappatura funzionante dall’ID sincronizzato al record locale.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
shell
Ambito
cli
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Attiva
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.