docs(mouse-and-clipboard): Tauri Windows reads clipboard natively, not via sidecar#206
Merged
Merged
Conversation
…t via sidecar Reflects #205, which replaced the standalone/Tauri Windows clipboard-read path (sidecar Get-Clipboard, which popped a PowerShell console window per paste) with native Win32 reads in clipboard_win.rs. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Deploying mouseterm with
|
| Latest commit: |
41b127e
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://862b3bad.mouseterm.pages.dev |
| Branch Preview URL: | https://docs-clipboard-win-native-re.mouseterm.pages.dev |
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.
Problem
docs/specs/mouse-and-clipboard.md§8.6 claimed that every clipboard-read tier is implemented by the sidecar Node module shelling out toGet-Clipboardon Windows, with "the Tauri build reaches it through the existing sidecar." That went stale with #205, which moved the standalone/Tauri Windows path to native Win32 reads in Rust (standalone/src-tauri/src/clipboard_win.rs) — precisely to avoid thepowershell.execonsole-window flicker the old sidecar path caused on every paste.Change
Doc-only. §8.6 now describes the two backends accurately:
clipboard-ops.js(osascript/Get-Clipboard/wl-paste/xclip).clipboard_win.rs(CF_HDROP/CF_UNICODETEXT/CF_DIB→.bmp), avoiding the PowerShell console-window pop.Also notes that the Windows native image path writes
.bmp(a CF_DIB with a prependedBITMAPFILEHEADER) rather than the sidecar path's.png.No regression test — documentation-only change with no code behavior to exercise.