Kimi Code TUI在WSL2中无法粘贴图片到对话框中

Open
#5,307 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
Half a day
Newbie friendliness
50/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
linux, typescript
Domain
cli

Research direction

The repro shows wl-paste --list-types returning image/bmp while Ctrl+V and Alt+V do nothing in the TUI, so the clipboard bridge under WSL2 either does not call wl-paste for images or rejects the BMP type. Start by locating the TUI's paste/keybinding handling and any existing image-clipboard code that the earlier issues (#1961, #316, #2425, #2722, #3744) touched, then check how pasted images are decoded and what MIME types are accepted. Done means pasting a Windows-clipboard image in WSL2 under Windows Terminal inserts the image, verified manually plus any existing clipboard tests.

Written by the indexing model from the issue text.

Description

bug
你运行的 Kimi Code 版本是?

2.7.2

你使用的是哪个开放平台/订阅?

Kimi for coding

你使用的是哪个模型?

kimi-k3.1-pro

你的电脑平台是?

Linux 6.18.54.1-microsoft-standard-WSL2 x86_64 x86_64

你遇到了什么问题?

用 Windows Terminal 在 WSL 内运行 kimi-code,Windows 剪贴板中有图片时按 Ctrl+V 无法粘贴图片到对话框,Alt+V 也没有反应。

复现步骤?
  1. 复制一张图片。
  2. 用 Windows Terminal 在 WSL 内执行:
    wl-paste --list-types
    # image/bmp
    
  3. 启动 kimi TUI,按 Ctrl+V。
  4. 输入框没有变化。
期望的行为是什么?

图片能够正常粘贴。

补充信息

相关 issue

  • #1961
  • #316
  • #2425
  • #2722
  • #3744

本 issue 记录了 2.7.2 上的复现

Contribution
  • 我愿意自己提交修复此 bug 的 PR(请先等待维护者在本 issue 中批准)
Dominant language
TypeScript
Stars
8.3k
Forks
1.4k
Avg merge
12h 6m
Merged PRs (30d)
596

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from MoonshotAI/kimi-code

All issues in MoonshotAI/kimi-code

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.