3 Commits
Author SHA1 Message Date
lucioandClaude Opus 5 dd26befe58 clipboard: de-duplicate in-band chunks by Id
A machine pair keeps two control connections and PreProcess exempts
ClipboardText/ClipboardImage from the replay ring (Receiver.cs:40-82), so
every chunk is delivered twice. Windows reassembles from the one socket the
first chunk arrived on (Clipboard.cs:308-373) and never sees it; ours is
keyed by sending machine, so the copies interleaved and corrupted the
payload. Reassembler now keeps a 50-entry ring of chunk Ids, which works
because contracts C1 stamps one Id per chunk for both deliveries.
docs/protocol.md §10.7 note 11.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
2026-09-16 04:56:31 -07:00
lucioandClaude Opus 5 2276c20792 clipboard: bulk channel on the TCP port, pull/push/accept
Listener and dials ported from SocketStuff.cs:475-495, 1566-1666 and
Clipboard.cs:401-485, 1068-1099; the transfer from Clipboard.ShakeHand
(961-1066), ReceiveAndProcessClipboardDataCore (498-923) and
SocketStuff.SendClipboardData/SendFileEx/SendData (1673-1931).

The 64-byte DATA on this connection is raw, not framed (docs/protocol.md
§10.7 (a)): bytes 1..3 must be zero and are checked.

Verified on loopback in the scratchpad: pull of text, push of a file,
a 3 MB image across chunks, and an unauthorised peer refused.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
2026-09-16 04:45:36 -07:00
lucioandClaude Opus 5 8105f5f24f clipboard: text/CF_HTML codec, in-band chunking, bulk header, Reassembler
Ported from App/Core/Clipboard.cs (42-47, 190-201, 253-373, 1101-1194),
App/Helper/FormHelper.cs (180-218) and App/Class/SocketStuff.cs (1673-1811).
Foundation's .zlib is raw DEFLATE, verified against Python zlib -15.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
2026-09-16 04:36:51 -07:00