github / github/copilot-cli

pasting issue

Đang mở
#4,597 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.

triage
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

Bug: Pasted multi-line content not sent to model

Environment: WezTerm (Ctrl+V →  PasteFrom "Clipboard" ) on Windows, running Copilot CLI inside WSL (zsh). CLI version 1.0.80.

Expected: The full pasted content (12 lines) is sent to the model as part of the message.

Actual: The model responds as if no content was received — e.g., "I don't see the pasted content — it looks like it didn't come through." The paste token is not being expanded/substituted with the real content before the request is sent.

Notes: Terminal/paste mechanism itself works correctly (bracketed paste, WezTerm config verified clean) — this appears to be a CLI-side bug in how paste tokens are resolved before submission.

Affected version

GitHub Copilot CLI 1.0.80.

Steps to reproduce the behavior

Steps to reproduce:
in wezterm using wsl,

  1. Copy multi-line text (e.g., 12 lines) to clipboard.
  2. Prompt correctly shows a collapsed token:  [Paste #1 - 12 lines] .
  3. Press Enter to submit.
Expected behavior

No response

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

Tái hiện trong WezTerm trên Windows với Copilot CLI bên trong WSL bằng zsh, sao chép 12 dòng và gửi token [Paste #1] đã thu gọn. Vì không có tệp nguồn hoặc bài kiểm thử nào được nêu tên, hãy lần theo quá trình xử lý token dán từ lúc gửi prompt đến request tới model. Được xem là hoàn tất khi toàn bộ nội dung đã dán được bao gồm trong tin nhắn đã gửi.

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ó
3/5
Thời gian dự kiến
1-2 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
55/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.