mirror of
https://github.com/zeronsh/comet.git
synced 2026-11-16 18:57:19 +00:00
send_to_delivered_stays_flat_as_the_chat_grows compared wall-clock send times in a 3,000-entry chat with a new one and failed under CI load (4/10 under load locally, before and after beta.7's changes). It guardsc1168b6bf: the open chat's publish runs beside the drains, not before them. The test now checks that ordering with no clock: it holds the publish where it hands the transcript to its watchers (a held `borrow()` of the watch holds `send_replace`), sends, and waits for the agent to get the send while the publish is still held; released, the publish lands. Withc1168b6bfundone (publish awaited before the drains) it fails 3/3; with it, it passes in 0.07 s, 0/10 under load. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com>
2175 lines
73 KiB
2175 lines
73 KiB