Repository navigation
[BUG REPORT] 修复 Windows 无文本剪贴板未通知括号粘贴程序的问题 - #71
Open
WhiteGiverMa wants to merge 1 commit into
Open
WhiteGiverMa wants to merge 1 commit into
WhiteGiverMa wants to merge 1 commit into
Conversation
Author
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.
Type
What and why
Windows 上剪贴板没有文本时,向开启 bracketed paste 的程序发送空粘贴通知,让 OpenCode 等应用自行读取图片。
Closes #70
Bug details
[image1]附件占位。BRACKETED_PASTE开启时,将无文本粘贴转为paste_text(""),通过现有编码器发送ESC[200~ESC[201~。OpenCode 2.2.5 已支持这个零字节粘贴入口。文本 / 文件路径、未开启括号粘贴的无文本处理、kitty 5522 优先分支及其他平台行为不变。不传输图片、不生成临时图片文件,也不新增配置或依赖。本 PR 基于 main
ba664ef6,不包含 #69 的滚轮修改。How it was tested
真实 ELY 窗口中通过
Window::dispatch_event(KeyDown(ctrl-v))进入现有快捷键和 Paste handler,再经 OpenConsole / ConPTY 由原始 VT 输入子程序读取:ESC[200~ESC[201~另在实际 OpenCode 2.2.5 的 PTY 中,以合成图片剪贴板和上述 12 字节输入验证,界面显示
[image1]。验证边界:ELY 从 GPUI 事件入口开始测试,不包含原生物理键盘;OpenCode 消费端独立验证。未在 macOS / Linux 运行。临时驱动未加入 PR,没有新增自动回归测试。
Windows x86_64 MSVC,Rust 1.95.0:
fmt、Clippy、构建及 diff 检查通过。完整测试 414 passed / 1 failed:未修改的
settings::store::tests::overlapping_saves_leave_one_whole_file在并发rename时返回 Windowsos error 5(拒绝访问)。src/settings/store.rs与 main 无差异,该失败未在本 PR 中处理。Checklist
[FEATURE REQUEST],[BUG REPORT]or[Other]