Repository navigation
Make clipboard capture safer and add tray and provider settings - #3
Merged
Merged
Conversation
qhmiao
marked this pull request as ready for review
October 20, 2026 04:02
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.
旧的取词流程会通过 OLE 读取剪贴板所有格式,可能进入 CLR 原生崩溃路径;全局鼠标拖动还会把窗口操作、文件拖动和空选区当作文字选择。本 PR 改为先在短时独立进程中确认文本上下文并读取选区,仅在已确认的文本区域缺少接口时使用受保护的 Win32 剪贴板回退,同时修正托盘外观并增加翻译服务选择。
主要改动
验证
e51b648的 Windows CI 全部通过,包含构建、剪贴板流程、原生手势、上下文、翻译服务、隔离原生剪贴板、词库、完整离线自测与真实选区辅助进程测试。text-unsupported,候选均返回non-text;比较未读取文件名、选区原文或剪贴板。人工复测反馈文件拖动误触发已修复;结论限于已复测场景。边界
原始原生崩溃尚未重新触发,具体剪贴板格式或提供方仍不明确。Win32 延迟渲染可能阻塞,也不存在多格式原子恢复保证。辅助进程是取词依赖,必须与主程序一起分发;进程隔离不是权限沙箱。
隐藏控件测试和真实属性分类比较不替代鼠标交互验收。Explorer 拖动修复已获得人工复测反馈,但修复后的框选、取消拖动、重命名及普通应用选词未逐项记录独立结果。UIA 起点语义在释放后的辅助进程中检查,源界面完全重建的情况仍需实际应用验证。完全自绘且始终返回客户区的滚动条、不同 DPI、管理员窗口和系统浮层的全部交互未获完整覆盖。
尚未使用真实 DeepL 账户或密钥联调,也未发起计费请求;不包含企业区域端点。DPAPI 不能防范同一用户身份下的其他进程,配置、凭据和启动项保存不构成跨文件崩溃原子事务。