You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Config migration does not preserve backup of old format #637
When the dev branch's config migration runs (migrate_legacy_projects() in config.py), it converts the old project format (string paths) to the new format (ProjectConfig dicts) in-place. No backup of the previous config is created before saving.
This means:
Running the dev version migrates ~/.basic-memory/config.json to the new format
Running the released homebrew version (0.18.5) after that fails with ValidationError: projects.main - Input should be a valid string
There's no way to recover the old config without manual intervention
Steps to Reproduce
Install homebrew basic-memory (v0.18.5) and create a working config
Run the dev branch version — config auto-migrates to new format
Run the homebrew version again — fails with validation error
Expected Behavior
The migration should create a backup (e.g., config.json.bak) before writing the new format, so users can revert if needed.
Relevant Code
src/basic_memory/config.py — migrate_legacy_projects() model validator
ConfigManager.save() writes directly without backup
Impact
Users who switch between dev and released versions lose their config without recovery path.
Recommendation
Release v0.18.6 with config backup support before deploying the new format to production. This ensures existing users have a safe upgrade path and can roll back if needed.
Activity
claude commentedon Feb 28, 2026
Claude encountered an error —— View job
I'll analyze this and get back to you.
phernandez commentedon Mar 1, 2026
Fixed in 574a8f85. Config migration now creates a
config.json.bakbackup before overwriting the old format, so users can revert if needed.fix: create backup before config migration overwrites old format (#637)