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. |
||
|---|---|---|
| .. | ||
| keys | ||
| org.weft.demo.counter | ||
| org.weft.demo.notes | ||