ask_user form: pressing Enter early submits/cancels and permanently discards the in-progress typed answer
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Shell
- Estrellas
- 11.2k
- Forks
- 1.9k
- Merge medio
- 14 h 16 min
- PR fusionados (30 d)
- 6
Descripción
Describe the bug
Severity: High (data loss — user-authored content is unrecoverable)
Impact: Loss of substantial user-typed input; forces the user to re-type from scratch and erodes trust in the form UI.
Suggested fixes: Draft autosave/restore for elicitation forms; make Enter insert a newline in text fields (submit via a distinct key like Ctrl+Enter); on cancel/escape, stash the draft (similar to ctrl+s stash/pop) rather than discarding it.
Affected version
GitHub Copilot CLI 1.0.83
Steps to reproduce the behavior
What happened: While typing a long free-text answer into an agent ask_user elicitation form, I pressed Enter before finishing. This submitted/advanced the form, and when I hit Escape to get back, my entire in-progress answer was erased with no way to recover it.
Expected behavior
Expected: Either (a) Enter in a multi-line form field should insert a newline (require an explicit submit action/confirmation to send), and/or (b) an accidental submit/escape should preserve the drafted text (e.g., restore it into the input buffer, or offer undo/ ctrl+r -style recovery). Long answers should never be silently, irrecoverably lost.
Additional context
No response
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Empieza reproduciendo el flujo de Enter anticipado y Escape en el formulario de elicitación de ask_user, y después inspecciona cómo se gestiona la entrada de texto al enviar y cancelar. Se considera terminado cuando los borradores largos no se descartan de forma irrecuperable y el comportamiento de envío elegido es claro y está probado frente a pulsaciones accidentales de teclas.
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
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Activo
- Claridad
- Bastante claro
- Aptitud para principiantes
- 48/100