github thedotmack/claude-mem v10.5.6

6 hours ago

Patch: Process Supervisor Hardening & Logging Cleanup

Fixes

  • Downgrade HTTP request/response logging from INFO to DEBUG — eliminates noisy per-request log spam from the viewer UI polling
  • Fix isPidAlive(0) returning true — PID 0 is the kernel scheduler, not a valid child process
  • Fix signal handler race condition — added shutdownInitiated flag to prevent duplicate shutdown cascades when signals arrive before stopPromise is set
  • Remove unused dataDir parameter from ShutdownCascadeOptions
  • Export and reuse env sanitizer constantsServer.ts now imports ENV_PREFIXES/ENV_EXACT_MATCHES from env-sanitizer.ts instead of duplicating them
  • Rename zombiePidFiles to deadProcessPids — now returns actual PID array instead of a boolean
  • Use buildWorkerUrl helper in workerHttpRequest instead of inline URL construction
  • Remove unused getWorkerPort imports from observation and session-init handlers
  • Upgrade reapSession failure log from debug to warn level
  • Clean up .gitignore — remove stale ~*/, http*/, https*/ patterns and duplicate datasets/ entry

Tests

  • Rewrote supervisor index tests to use temp directories instead of relying on real ~/.claude-mem/worker.pid
  • Added deterministic test cases for missing, invalid, stale, and alive PID file states
  • Removed unused dataDir from shutdown test fixtures

Don't miss a new claude-mem release

NewReleases is sending notifications on new releases.