Repository navigation
Conversation
Text clipboard sync only worked when the Flutter app was the host, since its Dart shell is what polls the OS clipboard. The svc-supervised streambeam-host.exe worker (what a real Windows box runs) never touched the clipboard, so sync did nothing in either direction there. Add a platform-neutral ClipboardBridge over a SystemClipboard trait with a Win32 CF_UNICODETEXT backend, run on its own thread from run_cli. It syncs only while a viewer owns the stream and, under the SYSTEM worker, only while the input desktop is Default (never on the lock screen). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AHutN2ijFMPqmJ98kBAEH3
Member
Author
|
The Android release and scanner regression check failed, but the cause isn't this PR's code. The Gradle wrapper download returned HTTP 504 ( Generated by Claude Code |
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.
Requested by Joep · project thread
Why
Text clipboard sync (wire + app shell, 2026-07-17) only works when the Flutter app is the host, because the Dart shell is what polls the OS clipboard and calls
publish_clipboard/take_remote_clipboard. A real Windows host (Mancave) runs thestreambeam-svc-supervisedstreambeam-host.exeworker, and the in-app host stands down while the service runs. That binary never touched the Windows clipboard, so sync silently did nothing in either direction.What
crates/host/src/clipboard.rs: platform-neutralClipboardBridgeover aSystemClipboardtrait, plus a Win32CF_UNICODETEXTbackend (windows-sys). 750 ms poll like the app shell, skips reads whileGetClipboardSequenceNumberis unchanged, de-duplicates to prevent echo, retries a write if another process holds the clipboard.run_cli(Windows only; elsewhere a no-op).Default. The clipboard is per window station, so otherwise the lock screen could hand out what was copied before locking. Viewer text received while locked is applied after unlock.desktop_win::input_desktop_name()helper.Verification
cargo test -p streambeam-host: all pass, including 6 new bridge tests.windows-sys0.61 forx86_64-pc-windows-msvcin an isolated crate. The full host crate could not be checked for Windows from Linux (ringneeds MSVC headers), so CI's Windows build is the real check.Generated by Claude Code