github thedotmack/claude-mem v9.0.1

one day ago

Bug Fixes

Claude Code 2.1.1 Compatibility

  • Fixed hook architecture for compatibility with Claude Code 2.1.0/2.1.1
  • Context is now injected silently via SessionStart hook
  • Removed deprecated user-message-hook (no longer used in CC 2.1.0+)

Path Validation for CLAUDE.md Distribution

  • Added isValidPathForClaudeMd() to reject malformed paths:
    • Tilde paths (~) that Node.js doesn't expand
    • URLs (http://, https://)
    • Paths with spaces (likely command text or PR references)
    • Paths with # (GitHub issue/PR references)
    • Relative paths that escape project boundary
  • Cleaned up 12 invalid CLAUDE.md files created by bug artifacts
  • Updated .gitignore to prevent future accidents

Log-Level Audit

  • Promoted 38+ WARN messages to ERROR level for improved debugging:
    • Parser: observation type errors, data contamination
    • SDK/Agents: empty init responses (Gemini, OpenRouter)
    • Worker/Queue: session recovery, auto-recovery failures
    • Chroma: sync failures, search failures
    • SQLite: search failures
    • Session/Generator: failures, missing context
    • Infrastructure: shutdown, process management failures

Internal Changes

  • Removed hardcoded fake token counts from context injection
  • Standardized Claude Code 2.1.0 note wording across documentation

Full Changelog: v9.0.0...v9.0.1

Don't miss a new claude-mem release

NewReleases is sending notifications on new releases.