mirror of
https://github.com/marcoallegretti/WEFT_OS.git
synced 2026-11-22 08:13:59 +00:00
The Notes demo exchanged hand-escaped strings: the page turned every literal backslash-n into a line break on load and save, the component escaped only some control characters, so other text produced invalid replies, and every reply replaced the editor contents, discarding text typed while a save was in flight. Saves wrote the file in place and replaced whatever another Notes window had stored. Requests and replies are now JSON objects. The component reports a revision (a hash of the stored bytes) with each load; a save names the revision it was edited from and is refused when the stored notes have changed since, so a second window's text is never replaced silently. The file is written beside notes.txt and renamed over it. A save acknowledgement updates only the saved state, never the editor, and Discard reloads the stored notes. tests/frame/check_notes.py edits Notes with real keyboard input on the nested desktop: text with a literal backslash sequence, quotes, a tab and non-ASCII characters is stored byte for byte, text typed during a save survives, and a save after another window changed the file is refused. It fails against the previous package, which turned the seeded "\n" into a line break. app.wasm is rebuilt and the package re-signed with the demo key.
10 lines
136 B
Text
10 lines
136 B
Text
/target/
|
|
/.windsurf/
|
|
/docu_dev/
|
|
|
|
/infra/vm/weft-vm-result*
|
|
/infra/vm/*.qcow2
|
|
|
|
Thumbs.db
|
|
/tests/components/*/target/
|
|
/examples/*/target/
|