What’s New

claude-mem v13.12.1

v13.12.1
Changed
  • Unify cache directory version ranking across worker successor, MCP launcher, Codex Windows launcher, and POSIX hook prelude resolvers using a shared deterministic version oracle
Fixed
  • Fix infinite worker restart loop triggered by plugin upgrades by ranking cache directories by version instead of modification time across all four resolvers
  • Prevent orphan-stamped plugin directories from being respawned during worker restarts
Critical fix: worker restart storm

Fixes an infinite worker restart loop triggered by plugin upgrades. The worker-script resolver ranked plugin cache directories by mtime, so when Claude Code stamped a superseded version dir with .orphaned_at (bumping its mtime), every restart respawned the old version while hooks on the new version kept demanding a restart — spawning hundreds of processes until the host machine exhausted its process table.

All four resolvers (worker successor, MCP launcher, Codex Windows launcher, POSIX hook prelude) now rank cache dirs by version — never mtime — skip orphan-stamped dirs, and share one deterministic version oracle with the staleness detector (checkVersionMatch), making the restart loop structurally impossible.

Recommended upgrade for all users. Note: the vulnerable resolver is the one running during an upgrade, so machines are protected from the next upgrade onward.

Details: #3371

View original