fix(tui): restore WSL clipboard image paste - #2735
Open
ForeverMJ wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related Issue
Resolve #2722
Problem
Kimi Code running under WSL could not paste screenshots from the Windows
clipboard because the temporary image path was not forwarded across the
WSL interop boundary.
根因现已通过端到端单变量切换确认:
因此 Clipboard image paste does not work in WSL #2722 的根因是:Kimi 把临时 PNG 路径放进普通 Linux 环境变量,但 WSL 启动 powershell.exe 时不会自动把该变量传给 Win32 进程。PowerShell 得不到 $path,保存失败;错误随后被转换成 null,TUI 再静默退回普通文本粘贴。
What changed
WSLENVwith path conversion.WSLENVentries.Testing
Checklist
gen-changesetsskill, or this PR needs no changeset.gen-docsskill, or this PR needs no doc update.