github / github/copilot-cli

Session and prompt lost when stopping an action or hitting the stop button

Offen
#4,477 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

area:sessions
Vorherrschende Sprache
Shell
Sterne
11.2k
Forks
1.9k
Ø Merge
14 Std. 16 Min.
Gemergte PRs (30 T.)
6

Beschreibung

Bug Report

Description

When a user stops an in-progress action (e.g., hits the stop button during agent execution), the entire session — including the original prompt and any edits made to it — is deleted. This has happened multiple times.

Steps to Reproduce
  1. Create a new session with a detailed prompt
  2. The agent begins executing
  3. Hit the "stop" button to cancel the action
  4. The session disappears entirely — prompt, conversation history, and session are gone
Expected Behavior

Stopping an action should halt execution but preserve the session, the original prompt, and any conversation history up to that point. The user should be able to resume or re-run from that state.

Actual Behavior

The entire session is deleted, including the user's original prompt and any iterative edits they made to it. There is no way to recover the work.

Impact
  • Loss of detailed, carefully crafted prompts that took time to write and iterate on
  • User has to recreate the prompt from memory, losing edits made in the previous session
  • Erodes trust in the tool for complex, multi-turn prompt development
Additional Context
  • Reported by a user in the github/lifecyclemarketing project
  • Has occurred multiple times (not a one-off)
  • The lost session involved a complex weekly digest workflow prompt that had been edited several times before the stop action was triggered

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Reproduziere das Problem, indem du eine Sitzung mit einem bearbeiteten Prompt erstellst, eine Aktion startest und auf die Stopptaste drückst. Verfolge den Stop-/Abbruchpfad, um zu ermitteln, wo die Sitzung gelöscht wird; fertig ist die Aufgabe, wenn die Ausführung stoppt, während Prompt, Bearbeitungen, Gesprächsverlauf und Sitzung zum Fortsetzen oder erneuten Ausführen verfügbar bleiben.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
shell
Bereich
cli
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Ruhig
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
55/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.