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

未关闭
#5,307 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

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

调研方向

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.

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

描述

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 中批准)
主要语言
TypeScript
星标
8.3k
派生
1.4k
平均合并
12 小时 6 分钟
30 天内合并 PR
596

环境准备

从这里开始

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

MoonshotAI/kimi-code 的其他 Issue

查看 MoonshotAI/kimi-code 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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