MoonshotAI / MoonshotAI/kimi-cli
Ctrl-V 无法在 Windows Terminal 中粘贴图片 || Ctrl-V cannot paste pictures in Windows Terminal
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 11.4k
- Forks
- 1.3k
- Avg merge
- 9h 47m
- Merged PRs (30d)
- 2
Description
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 无法粘贴剪贴板中的图片。
具体表现:
- 复制一张图片到剪贴板(如截图工具、浏览器右键复制图片等)
- 在 Kimi Code CLI 中按下 Ctrl-V
- 没有任何反应,图片没有被粘贴到输入框
- 文本粘贴功能正常,只有图片粘贴失败
What steps can reproduce the bug?
- 打开 Windows Terminal
- 启动 Kimi Code CLI:kimi
- 使用截图工具截取一张图片,或从浏览器复制图片到剪贴板
- 在 Kimi Code CLI 的输入框中按下 Ctrl-V
- 预期:图片应该被粘贴并显示为 [image:xxx.png,WxH] 占位符
- 实际:没有任何反应,图片未被粘贴
补充说明:
• 在 VS Code 内置终端中,图片粘贴功能正常工作
• powershell、git bash,图片粘贴正常
What is the expected behavior?
No response
Additional information
根据文档描述,Ctrl-V 应该支持粘贴图片,并在输入框中显示为 [image:xxx.png,WxH] 占位符。发送后 AI 应该能看到并分析图片内容。
建议的修复方案:
- 修复 Windows Terminal 下的图片剪贴板检测
- 或者提供替代方案(如 /image <文件路径> 命令直接选择图片文件)
- 在文档中注明 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:
- Copy an image to the clipboard (such as a screenshot tool, right-click the browser to copy the image, etc.)
- Press Ctrl-V in Kimi Code CLI
- Nothing happens, the image is not pasted into the input box
- The text pasting function is normal, but only the picture pasting fails.
What steps can reproduce the bug?
- Open Windows Terminal
- Start Kimi Code CLI: kimi
- Use the snipping tool to capture an image, or copy the image from the browser to the clipboard
- Press Ctrl-V in the input box of Kimi Code CLI
- Expectation: The image should be pasted and displayed as [image:xxx.png,WxH] placeholder
- 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:
- Fix image clipboard detection under Windows Terminal
- Or provide alternatives (such as /image command to directly select image files)
- Indicate Windows Terminal limitations and workarounds in the document
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue in Windows Terminal with Kimi Code CLI 1.27.0, then compare image pasting with the VS Code terminal, PowerShell, and Git Bash. Trace the CLI input and clipboard handling entry points, focusing on the Windows Terminal path. Done means Ctrl-V inserts the documented [image:xxx.png,WxH] placeholder, or the limitation and a working workaround are documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell, python
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100