mirror of
https://github.com/zeronsh/comet.git
synced 2026-11-16 18:57:19 +00:00
Engine: this device's own lastSeenAt keeps moving; the same editor gets its queue lease back
Presence: the registry room never echoes a device's beat back to its sender, so the engine's own device row only took a lastSeenAt from a rejoin's hello. After the 03:55 reset on work-laptop it froze there while the heartbeat kept going. RegistryClient now keeps the beat it last sent on a live session (own_presence) and the engine folds it into its own row. Every (re)join also beats at once, so peers see the device live again right after a reset instead of up to 15 s later. Queue edit: begin_queued_message_edit refused any unexpired lease, even one held by the same device and window asking again (its Acquired reply lost to a dropped app socket, or the chat reopened). The app said "being edited on another device" for up to a minute. The same editor now takes its own lease over; any other window or device is still locked out. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com>
This commit is contained in:
parent
6248f09823
commit
df4eecfe04
4 changed files with 120 additions and 7 deletions
Loading…
Add table
Add a link
Reference in a new issue