v0.1.2.md

June 3, 2026 ยท View on GitHub

Storage

Improvements

  • Added rotating backup recovery across .bak, .bak.1, and .bak.2, with deterministic fallback ordering.
  • Hardened backup rotation write path to stage then commit snapshots, preventing partial historical-chain rewrites on failure.
  • Added retry/backoff handling for staged backup renames and transient filesystem lock conditions on Windows (EPERM, EBUSY, EAGAIN).
  • Added startup cleanup for orphaned staged rotation artifacts (*.bak(.N).rotate.*.tmp) to reduce token exposure risk after interrupted writes.
  • Expanded runtime home-directory resolution precedence on Windows (USERPROFILE -> HOME -> HOMEDRIVE + HOMEPATH -> homedir()), including no-leading-slash HOMEPATH normalization.
  • Strengthened worktree identity handling for account storage with branch-change-safe realpath coverage.

Tests

  • Expanded regression coverage for backup-depth recovery, staged rename retries, and parallel-save ordering guarantees.