7 Commits
Author SHA1 Message Date
lucioandClaude Fable 5.1 b73e878ae4 clipboard: close lane (lead review), CP2 handed over; brief: extras
Co-Authored-By: Claude Fable 5.1 <[email protected]>
2026-09-16 05:13:13 -07:00
lucioandClaude Sonnet 5 e5e38b496e clipboard: QA log — verified against Windows source, PASS with 5 follow-up findings
Reviewed the diff against Core/Clipboard.cs, SocketStuff.cs, FormHelper.cs,
ReceivedDestinationFile.cs, Receiver.cs and Common.cs; ran tools/gates.sh
(all green). No wire-format, trust-gate, or logging violations found.
Findings are all low/medium severity and don't block CP2: the bulk
connection limit doesn't reproduce Windows's single-flight receive
semaphore, a dead stagingURL(in:) helper, a comment/behaviour mismatch
on the text-size gate, an unused AppKit import, and a send-time failure
message that can say "not found" instead of "too big" in a narrow race.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
2026-09-16 05:11:33 -07:00
lucioandClaude Opus 5 21963d54c9 clipboard: work log note for the offer-clearing and size-cap fixes
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
2026-09-16 05:00:04 -07:00
lucioandClaude Opus 5 4181bb273f clipboard: pace in-band chunks, 128 packets every 5 ms
A 1 MB payload is 21 846 packets. Handing them to ControlChannel.forward in
one loop overruns the 512-packet outbox (contracts C3), which closes the
connection, and puts a second of clipboard traffic ahead of the next mouse
packet. Windows paces naturally because SendClipboardDataUsingTCP writes
each packet down a blocking socket from its own thread (Clipboard.cs:260-305).

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
2026-09-16 04:58:07 -07:00
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 105a34cb45 clipboard: feature README (assumptions, handshakes, work log) and TODO ticks
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
2026-09-16 04:53:58 -07:00
lucioandClaude Fable 5.1 18c9702524 app-ui: close lane (lead review), CP1 handed over; brief: clipboard
Co-Authored-By: Claude Fable 5.1 <[email protected]>
2026-09-16 04:27:26 -07:00