mirror of
https://github.com/marcoallegretti/WEFT_OS.git
synced 2026-11-22 08:13:59 +00:00
Discard waited for a stored revision, so after a load failed (stored notes not valid UTF-8, a read error, a lost reply) the editor stayed read-only with no way to reload. The page now tracks the outstanding load itself: Discard is refused only while a load or save is in flight, a load error or a ten-second timeout ends the load, and Discard retries. A save acknowledgement arriving after its timeout and after Discard had started a reload replaced the saved state while the editor still showed older text, so the next save would silently revert it. Acknowledgements are ignored while a load is outstanding, and a reload forgets the last save. The component removes a lock whose token could not be written and cleans up renamed stale locks with the abandoned staging files. check_notes.py adds a failed load followed by a repaired file and Discard; the previous package stays read-only there and fails.
1 line
No EOL
128 B
Standard ML
1 line
No EOL
128 B
Standard ML
a533f421c6e9b5d5df82d082b68af0b8408a7f02fd060bd71d1b33bc1579046a3791d73a929b90c8a62c7c42949f412bd88952c7e10f1575cc85cccb1602a40d |