github thedotmack/claude-mem v5.3.0
v5.3.0: Session Lifecycle Improvements

latest releases: v10.0.7, v10.0.6, v10.0.5...
3 months ago

v5.3.0 (2025-11-09)

Breaking Changes: None (minor version)

Session Lifecycle Improvements:

  • Prompt Counter Restoration: SessionManager now loads prompt counter from database on worker restart, preventing state loss
  • Continuation Prompts: Lightweight prompts for request #2+ avoid re-initializing SDK agent's mental model
  • Summary Framing: Changed from "final report" to "progress checkpoint" to clarify mid-session summaries

Bug Fixes:

  • #76: Fixed PM2 "Process 0 not found" error by using idempotent pm2 start instead of pm2 restart
  • #74, #75: Fixed troubleshooting skill distribution by moving to plugin/skills/ directory
  • #73 (Partial): Improved context-loading task reporting in summaries

Technical Details:

  • Modified files:
    • src/services/worker/SessionManager.ts (loads prompt_counter from DB)
    • src/services/worker/SDKAgent.ts (uses continuation prompts)
    • src/sdk/prompts.ts (added buildContinuationPrompt function)
    • src/shared/worker-utils.ts (pm2 start instead of restart)
    • src/hooks/context-hook.ts (improved context loading)
    • Moved .claude/skills/troubleshootplugin/skills/troubleshoot

Why These Changes Matter:

  • Worker restarts no longer lose session state
  • Subsequent prompts are more efficient (no re-initialization overhead)
  • Summaries better reflect ongoing work vs completed sessions
  • PM2 errors eliminated for new users
  • Troubleshooting skill now properly distributed to plugin users

Upgrade Notes: No breaking changes. Worker will automatically pick up improvements on restart.

Don't miss a new claude-mem release

NewReleases is sending notifications on new releases.