Claude Mem v12.3.9 is a meaningful maintenance release centered on faster session teardown, stronger security signaling, and more reliable hook behavior across environments. The update adds dedicated security observation types with optional Telegram notifications, removes the long delay previously experienced when sessions ended, and tightens several edge cases found during review of the worker-port and Windows fixes.
The headline addition is a new security observation model. Version 12.3.9 introduces security_alert for high-priority events and security_note for lower-priority findings. These can be paired with a fire-and-forget Telegram notifier that supports MarkdownV2 formatting, isolates errors per observation, and avoids token logging. The notifier behavior is controlled through five environment variables, with CLAUDE_MEM_TELEGRAM_ENABLED acting as the master switch and defaulting to enabled when the required bot token and chat ID are present.
Another major improvement is the stop-hook redesign. Previous session shutdowns could block the terminal for roughly 110 seconds while summarization completed. In v12.3.9, the summarize handler now enqueues work and returns immediately, while server-side processing is finalized by the SessionCompletionHandler outside the hook critical path. The release notes indicate this path supports both generator and HTTP fallback modes, with singleton sharing across the worker to reduce duplication and improve efficiency.
Hook endpoint resolution was also aligned with worker behavior. Hooks now use the same precedence order when determining host and port: environment variables first, then settings.json, then defaults. This includes support for CLAUDE_MEM_WORKER_PORT and CLAUDE_MEM_WORKER_HOST. The release also loosens the sed regex so it can parse both quoted and unquoted JSON port values, and it adds a Windows fallback to port 37777 when the per-UID formula does not apply.
Several reviewer-round bug fixes further harden the release. Claude Mem no longer removes an in-memory session after a failed finalize, preserving crash-recovery state in three code paths. It also prevents a double broadcast of session_completed on the fallback path, synchronizes the DatabaseManager.getSessionById return type, ensures TelegramNotifier respects settings.json rather than only environment variables, and replaces a hardcoded siren emoji with per-type mappings.
This release matters because it improves both user experience and operational trust. The stop-hook change directly addresses one of the most frustrating workflow issues: long blocking delays when a session ends. By moving completion work off the critical path, Claude Mem should feel materially faster and less intrusive during normal use.
The new security observation types also make the platform more usable in production-style environments. Instead of treating every security-related event the same way, teams can now distinguish between urgent alerts and lower-priority notes, then route them into Telegram with safer handling and cleaner formatting. That helps reduce alert fatigue while still enabling near-real-time notification for serious events.
Finally, the hook and fallback fixes suggest this version is not just adding features but also tightening reliability around session finalization, endpoint discovery, and cross-platform behavior. For users running Claude Mem on Windows or in mixed environments with custom worker settings, v12.3.9 should deliver a more consistent and predictable experience.
Official Source: https://github.com/thedotmack/claude-mem/releases/tag/v12.3.9