github / github/copilot-cli

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

Đang mở
#4,738 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

area:agents area:input-keyboard
Ngôn ngữ chính
Shell
Star
11.2k
Fork
1.9k
Merge trung bình
14 giờ 16 phút
Pull request đã merge (30 ngày)
6

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện luồng Enter sớm và Escape trong biểu mẫu gợi mở ask_user, sau đó kiểm tra cách dữ liệu nhập dạng văn bản được xử lý khi gửi và hủy. Hoàn thành có nghĩa là các bản nháp dài không bị loại bỏ không thể khôi phục, đồng thời hành vi gửi đã chọn là rõ ràng và được kiểm thử đối với các lần nhấn phím ngoài ý muốn.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
shell
Lĩnh vực
cli
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Sôi nổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
48/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.