marc c09f2a1a11 fix: STATE_DIR.mkdir leftover calls still said DIWAN_DIR
Three mkdir(exist_ok=True) calls (locked(), save_state(), cmd_tick())
were never updated during the DIWAN_DIR/DIWAN_NOTES_DIR rename -- they
called .mkdir() on DIWAN_DIR (the tool's own install dir, which already
exists, so this silently no-op'd) instead of STATE_DIR (the content
repo's .diwan/ bookkeeping dir, which needs creating on a repo's first
run). Masked in all my own testing because diwan-dev-notes already had
a .diwan/ directory from manual setup predating the rename; surfaced on
thingvellir against a genuinely fresh content repo with no pre-existing
.diwan/, where it crashed with FileNotFoundError on .diwan/.lock.

Reproduced the crash against a fresh git-init'd repo with no .diwan/
directory, confirmed the fix via 'nix build' + running the packaged
binary against it.
2026-11-09 16:20:34 +01:00
S
Description
An agent driven personal notes manager
237 KiB
0 Stars 1 Watchers 0 Forks
Languages
Nix 100%