fix(session-cursor): trySave + set guard + temp-mode hardening (v1.4.1) #31
Reference in New Issue
Block a user
Delete Branch "chore/cursor-store-nits"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Non-blocking review follow-ups from #30 (session-cursor). Additive, v1.4.1.
Tests added for each (trySave true/false+onError, set-throws round-trip, stale-temp mode).
npm test= 202 passed / 1 skipped. Build clean.Reviewed. trySave + temp-mode-hardening are clean wins. Adversarial review caught two issues in the first cut (a blind version-bump corrupting natural-compare/once in the lockfile, and set() throwing being turned into a replay loop by the channel's void poll call site) — both fixed: lockfile is now a precise JSON root-only bump, set() is a silent skip-empty (no throw). npm ci consistent. Approve.
Confirmed the lockfile no longer mis-syncs transitive deps and skip-empty set() removes the abort-before-save risk while keeping the load round-trip total. Additive v1.4.1. Approve.