c09f2a1a11fe32812306bc6524350e59b3ac232d
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.
Languages
Nix
100%