What's New
Auto-cleanup stale session DB files
Context Mode creates a SQLite FTS5 database per session in /tmp. Previously, these files were never cleaned up, leading to unbounded disk growth (100+ orphaned DB files observed in production).
Now:
- Startup cleanup:
cleanupStaleDBs()runs when the MCP server starts — removes DB/WAL/SHM files from previous sessions whose PIDs no longer exist - Shutdown cleanup:
store.cleanup()deletes own DB files on process exit (SIGINT/SIGTERM/exit)
Other changes
- Recommended plugin install as primary installation method in README
- Added
/context-mode:upgradeand/context-mode:doctorslash commands to install section - 4 new cleanup tests in
store.test.ts
Full Changelog: v0.7.1...v0.7.2