CommandCodeAI / CommandCodeAI/command-code

Cannot paste clipboard images into the CLI prompt

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

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

Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
4k
Fork
350
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Summary

Pasting an image from the system clipboard into the Command Code CLI prompt does not attach the image. This prevents me from sharing screenshots directly during a session.

Expected Behavior

When an image is copied to the system clipboard and pasted into the prompt, Command Code should attach it as an image and show that it is ready to send.

Actual Behavior

Pasting an image from the clipboard does not attach anything to the prompt. Dragging the same image from the file manager into Command Code works correctly.

Steps to reproduce the issue
  1. Start Command Code with cmd.
  2. Copy a screenshot or image to the system clipboard.
  3. Focus the Command Code prompt.
  4. Use the terminal paste shortcut.
  5. Observe that no image is attached.
Command Code Version

1.54.1

Operating System

Linux

Terminal/IDE

Unknown

Shell

fish

Session file (optional)

No response

Fix prompt (optional)

Add clipboard image handling to the interactive prompt. Detect image clipboard data on paste, create an image attachment, and verify it works on Linux terminals without breaking normal text paste.

Additional context

Dragging an image file from the file manager into Command Code works correctly; only pasting image data directly from the clipboard fails. The issue reproduces in both Kitty and XFCE Terminal.

Command Code version: 1.54.1
OS: Linux
Shell: fish
Terminal/IDE: Kitty and XFCE Terminal

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

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

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 từ prompt tương tác được khởi chạy bởi cmd và lần theo cách xử lý dữ liệu đầu vào được dán từ terminal, so sánh dữ liệu hình ảnh trong clipboard với đường dẫn đính kèm bằng thao tác kéo và thả hiện có và đang hoạt động. Tái hiện trên Linux trong Kitty hoặc XFCE Terminal, sau đó xác minh rằng hình ảnh được dán sẽ được đính kèm và việc dán văn bản thông thường vẫn không thay đổ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ệ
fish, linux
Lĩnh vực
cli, operating-systems
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
52/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.