github / github/copilot-cli

ask_user  form: pressing Enter early submits/cancels and permanently discards the in-progress typed answer

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

Nessuno ha ancora preso questa issue.

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

Descrizione

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

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

Inizia riproducendo il flusso di Enter anticipato ed Escape nel modulo di elicitation ask_user, quindi esamina come viene gestito l’input di testo durante l’invio e l’annullamento. Il lavoro è completato quando le bozze lunghe non vengono eliminate irrimediabilmente e il comportamento di invio scelto è chiaro e testato rispetto alla pressione accidentale dei tasti.

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
48/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.