Skip to content

Add bidirectional native cross-screen sessions - #6

Merged
Lokilankaaa merged 31 commits into
mainfrom
feature/native-cross-screen
Nov 22, 2026
Merged

Lokilankaaa merged 31 commits into
mainfrom
feature/native-cross-screen

Conversation

@Lokilankaaa

@Lokilankaaa Lokilankaaa commented Oct 30, 2026 •

Copy link
Copy Markdown
Owner

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.

@Lokilankaaa Lokilankaaa changed the title Connect native screen arrangement to keyboard and mouse sharing Connect native cross-screen keyboard/mouse and synchronized workspaces Oct 30, 2026
@Lokilankaaa Lokilankaaa changed the title Connect native cross-screen keyboard/mouse and synchronized workspaces Add bidirectional native cross-screen sessions Oct 30, 2026
@Lokilankaaa
Lokilankaaa merged commit a126dda into main Nov 22, 2026
1 check passed
@Lokilankaaa
Lokilankaaa deleted the feature/native-cross-screen branch November 22, 2026 12:07
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.

1 participant