fix(windows): 修复剪贴板 sentinel 竞争导致划词追问与划词编辑无法抓取选区 (#1024) - #1025
Open
HKLHaoBin wants to merge 9 commits into
Open
fix(windows): 修复剪贴板 sentinel 竞争导致划词追问与划词编辑无法抓取选区 (#1024)#1025HKLHaoBin wants to merge 9 commits into
HKLHaoBin wants to merge 9 commits into
Conversation
…ction Schedule the standard 2s capsule idle timer after no-selection begin errors so the Siri-style prompt does not stay on screen indefinitely. Co-authored-by: Cursor <cursoragent@cursor.com>
Distinguish clipboard sentinel unchanged, empty copy, shortcut failure, and prefetch vs live capture so user-exported logs can diagnose false no-selection reports. Co-authored-by: Cursor <cursoragent@cursor.com>
Format optional front_app in prefetch miss logs and gate the NoCapturePath fallback to non-desktop targets so macOS/Windows/Linux builds compile cleanly. Co-authored-by: Cursor <cursoragent@cursor.com>
…e capture Co-authored-by: Cursor <cursoragent@cursor.com>
…Ctrl+C validation Co-authored-by: Cursor <cursoragent@cursor.com>
Clipboard History async listeners can hold the clipboard after we write the sentinel, so target-app Ctrl+C silently fails. Wait for settle, poll, and optionally resend Ctrl+C. Bump to 1.3.18-Beta.10. Co-authored-by: Cursor <cursoragent@cursor.com>
Bare `as u64 <` is parsed as a generic; cfg(windows) code still must parse on Linux CI. Co-authored-by: Cursor <cursoragent@cursor.com>
windows 0.58 returns Result<HWND>; annotate VIRTUAL_KEY for GetAsyncKeyState. Co-authored-by: Cursor <cursoragent@cursor.com>
上游 PR 只保留选区捕获 / 剪贴板 sentinel 修复。版本号仍由上游发布流程管理。 Co-authored-by: Cursor <cursoragent@cursor.com>
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.
摘要
Fixes #1024。
修复 Windows 选区抓取:写入 sentinel / 恢复剪贴板时与剪贴板历史抢锁,导致模拟 Ctrl+C 静默失败,划词追问和划词编辑被误判为无选区。
修复 / 新增 / 改进
windowscrate 启用Win32_System_DataExchange,正确处理GetOpenClipboardWindow。兼容
测试计划
selectionVoiceNoSelectionopenless.log,确认[selection]/[selection-voice]的reason=诊断行cargo test --manifest-path openless-all/app/src-tauri/Cargo.toml --lib(能在本机跑的部分)