Skip to content

docs(mouse-and-clipboard): Tauri Windows reads clipboard natively, not via sidecar#206

Merged
nedtwigg merged 1 commit into
mainfrom
docs/clipboard-win-native-read
Jul 4, 2026
Merged

docs(mouse-and-clipboard): Tauri Windows reads clipboard natively, not via sidecar#206
nedtwigg merged 1 commit into
mainfrom
docs/clipboard-win-native-read

Conversation

@dormouse-bot

Copy link
Copy Markdown
Collaborator

Problem

docs/specs/mouse-and-clipboard.md §8.6 claimed that every clipboard-read tier is implemented by the sidecar Node module shelling out to Get-Clipboard on 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 the powershell.exe console-window flicker the old sidecar path caused on every paste.

Change

Doc-only. §8.6 now describes the two backends accurately:

  • VSCode build (all platforms) and standalone/Tauri on macOS/Linux → sidecar clipboard-ops.js (osascript / Get-Clipboard / wl-paste/xclip).
  • standalone/Tauri on Windows → native Win32 reads in 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 prepended BITMAPFILEHEADER) rather than the sidecar path's .png.

No regression test — documentation-only change with no code behavior to exercise.

…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>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying mouseterm with  Cloudflare Pages  Cloudflare Pages

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

View logs

@nedtwigg nedtwigg merged commit 711630c into main Jul 4, 2026
4 checks passed
@nedtwigg nedtwigg deleted the docs/clipboard-win-native-read branch July 4, 2026 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants