MoonshotAI / MoonshotAI/kimi-code
kimi cli cant paste img
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 7.5k
- Forks
- 1.2k
- Avg merge
- 11h 53m
- Merged PRs (30d)
- 350
Description
What version of Kimi Code is running?
0.42.0
What platform is your computer?
Windows 10 + WSL (WSL 2.6.3, Debian), running Kimi Code inside Windows Terminal.
What issue are you seeing?
Clipboard image paste does not work in WSL: after Win+Shift+S, pressing Ctrl+V attaches nothing and no "image in clipboard" hint appears. This is the same symptom as #2722, but on 0.42.0 which should include the #2735 fix.
Diagnostics
- Ctrl+V reaches the WSL process correctly: raw-mode stdin read returns
b'\x16'(16). powershell.exeinvoked from WSL reads the Windows clipboard image successfully (System.Windows.Forms.Clipboard.GetImage() returns a bitmap).wl-paste --list-typesafter a screenshot shows ONLYimage/bmp— WSLg exposes no image/png.- WSLg is present and healthy: WAYLAND_DISPLAY=wayland-0, /mnt/wslg mounted.
Expected behavior
Since WSLg only offers image/bmp, the PowerShell fallback added in #2735 should kick in and attach the clipboard image. It does not — the paste silently falls back to nothing. Suspect the clipboard detection path doesn't recognize image/bmp as an image type, so the fallback is never triggered.
Workaround
Saving the clipboard image via PowerShell to a PNG file, then either @-referencing the file or wl-copy -t image/png < file.png, works fine.
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 at the clipboard detection and image-paste handling paths, reproducing the issue with wl-paste --list-types in WSLg and confirming the PowerShell fallback can read the bitmap. Check whether image/bmp is recognized as an image type; done means Ctrl+V attaches the clipboard image when WSLg exposes only image/bmp.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell, typescript
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100