WEFT_OS/examples/org.weft.demo.notes
Marco Allegretti c1ea57fbef
fix(notes): keep Discard usable after a failed load
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.
2026-10-09 09:05:25 +00:00
..
.cargo feat(examples): add counter and notes demo apps 2026-03-12 15:31:20 +01:00
src fix(notes): keep Discard usable after a failed load 2026-10-09 09:05:25 +00:00
ui fix(notes): keep Discard usable after a failed load 2026-10-09 09:05:25 +00:00
wit feat(examples): add counter and notes demo apps 2026-03-12 15:31:20 +01:00
app.wasm fix(notes): keep Discard usable after a failed load 2026-10-09 09:05:25 +00:00
Cargo.lock feat(examples): add counter and notes demo apps 2026-03-12 15:31:20 +01:00
Cargo.toml feat(examples): add counter and notes demo apps 2026-03-12 15:31:20 +01:00
signature.sig fix(notes): keep Discard usable after a failed load 2026-10-09 09:05:25 +00:00
wapp.toml feat(examples): add counter and notes demo apps 2026-03-12 15:31:20 +01:00