What's New
Bug Fixes
Fix orphaned temp files leaking disk space (~37GB observed).
Atomic writes (writeFileSync → renameSync) left behind memory.db.tmp.* files when processes were killed (SIGTERM) between the write and rename. Added signal handlers (SIGTERM/SIGINT/SIGHUP) to clean up in-progress temp files, and startup cleanup to remove orphaned temp files from dead processes.
Fix process.exit(1) skipping finally { closeDb() } in main error handler.
Changed to process.exitCode = 1 so the database is properly closed on errors.
Fix MCPResponse type to allow null id per JSON-RPC 2.0 spec.
Parse error responses must use id: null when the request ID is unknown.
Upgrade Note
After upgrading, the first run will automatically clean up any orphaned temp files from ~/.cortex/. No manual action needed.
🔄 Updating from v2.x
/plugin marketplace update cortex
/plugin update cortex
Then ask Claude to run setup:
Please setup Cortex (or run /cortex-setup manually)
This installs dependencies and the embedding model for the new version. Your memories and configuration are preserved.
Then restart Claude Code.
Note: Always update the marketplace first due to a known Claude Code issue.
Full Changelog: v2.1.3...v2.1.4