github / github/copilot-cli

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

Abierto
#4,477 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

area:sessions
Lenguaje dominante
Shell
Estrellas
11.2k
Forks
1.9k
Merge medio
14 h 16 min
PR fusionados (30 d)
6

Descripción

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

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Línea de trabajo

Reproduce el problema creando una sesión con un prompt editado, iniciando una acción y pulsando el botón de detener. Sigue la ruta de detención/cancelación para identificar dónde se elimina la sesión; el trabajo está terminado cuando la ejecución se detiene mientras el prompt, las ediciones, el historial de conversación y la sesión siguen disponibles para reanudar o volver a ejecutar.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
shell
Área
cli
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Tranquilo
Claridad
Bastante claro
Aptitud para principiantes
55/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.