Skip to content

Ctrl-V 无法在 Windows Terminal 中粘贴图片 || Ctrl-V cannot paste pictures in Windows Terminal #1617

@zhatlas

Description

@zhatlas

What version of Kimi Code CLI is running?

1.27.0

Which open platform/subscription were you using?

Allegretto

Which model were you using?

kimi-for-coding

What platform is your computer?

windows

What issue are you seeing?

在 Windows Terminal 中使用 Kimi Code CLI 时,按下 Ctrl-V 无法粘贴剪贴板中的图片。
具体表现:

  1. 复制一张图片到剪贴板(如截图工具、浏览器右键复制图片等)
  2. 在 Kimi Code CLI 中按下 Ctrl-V
  3. 没有任何反应,图片没有被粘贴到输入框
  4. 文本粘贴功能正常,只有图片粘贴失败

What steps can reproduce the bug?

  1. 打开 Windows Terminal
  2. 启动 Kimi Code CLI:kimi
  3. 使用截图工具截取一张图片,或从浏览器复制图片到剪贴板
  4. 在 Kimi Code CLI 的输入框中按下 Ctrl-V
  5. 预期:图片应该被粘贴并显示为 [image:xxx.png,WxH] 占位符
  6. 实际:没有任何反应,图片未被粘贴
    补充说明:
    • 在 VS Code 内置终端中,图片粘贴功能正常工作
    • powershell、git bash,图片粘贴正常

What is the expected behavior?

No response

Additional information

根据文档描述,Ctrl-V 应该支持粘贴图片,并在输入框中显示为 [image:xxx.png,WxH] 占位符。发送后 AI 应该能看到并分析图片内容。
建议的修复方案:

  1. 修复 Windows Terminal 下的图片剪贴板检测
  2. 或者提供替代方案(如 /image <文件路径> 命令直接选择图片文件)
  3. 在文档中注明 Windows Terminal 的限制和 workaround

What version of Kimi Code CLI is running?

1.27.0

Which open platform/subscription were you using?

Allegretto

Which model were you using?

kimi-for-coding

What platform is your computer?

windows

What issue are you seeing?

When using the Kimi Code CLI in Windows Terminal, pressing Ctrl-V fails to paste an image from the clipboard.
Specific performance:

  1. Copy an image to the clipboard (such as a screenshot tool, right-click the browser to copy the image, etc.)
  2. Press Ctrl-V in Kimi Code CLI
  3. Nothing happens, the image is not pasted into the input box
  4. The text pasting function is normal, but only the picture pasting fails.

What steps can reproduce the bug?

  1. Open Windows Terminal
  2. Start Kimi Code CLI: kimi
  3. Use the snipping tool to capture an image, or copy the image from the browser to the clipboard
  4. Press Ctrl-V in the input box of Kimi Code CLI
  5. Expectation: The image should be pasted and displayed as [image:xxx.png,WxH] placeholder
  6. Actual: nothing happens, the picture is not pasted
    Additional notes:
    • In the built-in terminal of VS Code, the image pasting function works properly
    • powershell, git bash, picture pasting is normal

What is the expected behavior?

No response

Additional information

According to the documentation, Ctrl-V should support pasting images and display them as [image:xxx.png,WxH] placeholders in the input box. Once sent the AI ​​should be able to see and analyze the image content.
Suggested fix:

  1. Fix image clipboard detection under Windows Terminal
  2. Or provide alternatives (such as /image command to directly select image files)
  3. Indicate Windows Terminal limitations and workarounds in the document

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions