CommandCodeAI / CommandCodeAI/command-code
Cannot paste clipboard images into the CLI prompt
還沒有人認領這個 Issue。
- 主要語言
- 沒有語言資料
- 星號
- 4k
- 分支
- 350
- PR 合併指標
- 30 天內沒有已合併 PR
描述
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
- Start Command Code with
cmd. - Copy a screenshot or image to the system clipboard.
- Focus the Command Code prompt.
- Use the terminal paste shortcut.
- 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
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
從 cmd 啟動的互動式提示字元開始,追蹤終端機貼上輸入的處理方式,並將剪貼簿影像資料與現有且正常運作的拖放附件路徑進行比較。在 Linux 上使用 Kitty 或 XFCE Terminal 重現,然後驗證貼上的影像會被附加,且一般文字貼上維持不變。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- fish, linux
- 領域
- cli, operating-systems
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 活躍
- 描述清晰度
- 基本清楚
- 新手友好度
- 52/100