Repository navigation
Add bidirectional native cross-screen sessions - #6
Merged
Merged
Conversation
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.
Windows-origin input can cross into the Mac and return, but the previously installed version cannot use the Mac's physical keyboard and mouse as the source. This adds one authenticated duplex connection, two-sided release acknowledgement before ownership changes, symmetric real-monitor routing, and native Windows and Mac client integration. Either paired device may own input; the initial TCP connector remains Windows. The Mac agent developed and natively checked the capture adapter, client integration, and permission-query fixes.
The clients share real screen arrangements and focus, keep reconnects paused, and use one explicit start action. CFP1 wraps existing input frames v4; native status protocol 2 and worker IPC v3 remain. Pending commands from an older connection cannot enable a new one. Display inventory queries authenticate the saved peer without starting capture or injection. Expensive Mac permission queries move off the input path with bounded freshness and latched failure.
Integration fixes keep inactive native workers alive while authenticated peer liveness remains valid and preserve ordered runtime records arriving in the same read as SessionReady. Regression coverage includes 12-second pause/source periods followed by reverse takeover, expired leases stopping maintenance, a deterministic coalesced-batch test, and an encrypted test across legal TCP read boundaries. Active input deadlines and release barriers remain unchanged.
Duplex diagnostics record source capture-to-queue timing and receiver dispatch/call timing without keycodes, coordinates, or typed text. Process-local connection IDs distinguish reconnects and associate each local dispatch with actual sink calls, including failures. Summaries separate queue acceptance, successful/failed/unknown dispatch, and actual calls; they do not infer socket completion, cross-host clock synchronization, missing calls, or visible latency.
Validation: latest Windows workspace tests pass (322 core, 5 CLI, 7 bridge, one ordinary process test), with 7 session checks including encrypted mock-input loopbacks and 23 metrics checks. Native Windows packaging passed with zero warnings/errors; its 72 UI checks are from the integrated client checkpoint. The actual Mac agent built and signed candidate d398b49, passed 82 pair checks and 75 package self-checks, and verified unchanged signing requirements and protected helper bytes. The earlier 81/82 test result is preserved; the failed test incorrectly required two TCP writes to arrive in one read and was corrected without changing product logic. These checks do not prove native bidirectional operation or visible smoothness. Additional development diagnostics have not replaced the d398b49 hardware-test packages.
Native macOS CI passed for the latest source-timing instrumentation at a126dda, including Rust tests/build/Clippy, encrypted mock-input loopbacks, Swift XCTest, packaging/signature checks and protected identity tests: https://github.com/Lokilankaaa/crossflow/actions/runs/41067931103. This verifies native builds and automated checks, not attended input or visible performance.
Attended evidence: the user confirmed Windows-to-Mac crossing and return after the DPI-context fix. That run later failed with a terminal Mac input-worker timeout; final button cleanup was not confirmed. The report preserves this failure and does not count it as stable acceptance. Duplex installation and physical acceptance remain pending. Mac-to-Windows physical sourcing, sustained stability, high-refresh visible latency, receiver batch coalescing, and signed upgrade continuity remain pending.