Settings: re-read the user area before changing it #383

Merged
littlefox merged 1 commit from issue-332-user-area into main 2026-10-28 10:11:30 +00:00
Owner

Closes #332

Option 1, as the user chose: every settings change reads the user area again and applies only that change (Kom::update_settings), so NeoKOM no longer undoes what another client wrote since login. Saves from one session take turns.

Verified: new devserver test user_area_changes_meet (two NeoKOM sessions with stale copies, plus an Emacs-style write of elisp/common in between: all three changes survive); all 33 devserver tests pass; clippy three ways.

🤖 Generated with Claude Code

https://claude.ai/code/session_01XJW2ocwLunyaLiUwCBHEP8

Closes #332 Option 1, as the user chose: every settings change reads the user area again and applies only that change (`Kom::update_settings`), so NeoKOM no longer undoes what another client wrote since login. Saves from one session take turns. Verified: new devserver test `user_area_changes_meet` (two NeoKOM sessions with stale copies, plus an Emacs-style write of `elisp`/`common` in between: all three changes survive); all 33 devserver tests pass; clippy three ways. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01XJW2ocwLunyaLiUwCBHEP8
Settings: re-read the user area before changing it
All checks were successful
perf / perf (pull_request) Has been skipped
ci / plan (push) Successful in 1m52s
ci / check (push) Successful in 9m6s
ci / desktop (push) Successful in 17m26s
ci / e2e (android) (push) Successful in 19m34s
ci / e2e (iphone) (push) Successful in 21m15s
ci / e2e (desktop) (push) Successful in 22m38s
f3abfa221f
The user area was written from the copy read at login, so anything
another client changed in between (Emacs, NeoKOM on another device) was
undone by NeoKOM's next save, however small. update_settings now reads
it again and applies only the change being made; saves from one session
take turns.

Refs #332

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XJW2ocwLunyaLiUwCBHEP8
littlefox referenced this pull request from a commit 2026-10-28 15:15:37 +00:00
Sign in to join this conversation.
No description provided.