mirror of
https://github.com/marcoallegretti/WEFT_OS.git
synced 2026-11-22 08:13:59 +00:00
The editor accepted typing before the stored notes had loaded, and a load reply then adopted the stored revision for text edited from nothing, so a save replaced notes the user never saw; the same happened when typing during a Discard reload. The editor is now read-only until it holds the stored text. Two Notes windows saving at once shared one staging file and could each pass the revision check, storing a mix of both texts. Each save now holds a lock file while it checks the revision and replaces the notes, writes its own staging file, syncs it before the rename, and removes only that file on failure; a lock left by an ended session expires after ten seconds. A save larger than the 64 KiB app message limit after JSON encoding was dropped on its way and left the page waiting forever with Save disabled. The page now refuses such saves before sending, gives up on a save after ten seconds without a reply, and the component answers every request, including malformed ones, so no request goes unanswered. check_notes.py now pauses weft-runtime with SIGSTOP to make text typed during a save and keys typed during a Discard reload deterministic; the previous package fails it by saving text typed before the reload. The building guide lists the application checks, the pinned toolchain for reproducing the demo binaries and the demo key path. |
||
|---|---|---|
| .. | ||
| check_app_data.py | ||
| check_counter.py | ||
| check_frame.py | ||
| check_input.py | ||
| check_notes.py | ||
| input.html | ||
| reference.html | ||
| session.py | ||