CommandCodeAI / CommandCodeAI/command-code

Cannot paste clipboard images into the CLI prompt

未关闭
#864 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 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
  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

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

cmd 启动的交互式提示符开始,跟踪终端粘贴输入的处理方式,并将剪贴板图像数据与现有且正常工作的拖放附件路径进行比较。在 Linux 上使用 Kitty 或 XFCE Terminal 重现,然后验证粘贴的图像会被附加,且普通文本粘贴保持不变。

由索引模型根据 Issue 内容生成。

评估

技术栈
fish, linux
领域
cli, operating-systems
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
活跃
描述清晰度
基本清楚
新手友好度
52/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。