mirror of
https://github.com/basicmachines-co/basic-memory
synced 2026-06-21 13:47:35 +00:00
adf5d7049b
Fixed the bug where removing a project (especially 'main') would cause it to reappear in the project list on the next command execution. Root cause: model_post_init() was forcing 'main' to exist on every config load, even after explicit removal. Changes: - Updated model_post_init() to only create 'main' if no projects exist - Fixed default_project handling to use first available project instead of always defaulting to 'main' - Added integration test test_remove_default_project_issue_397() to verify the fix and prevent regression The fix ensures users can remove any project (including 'main') as long as they have at least one other project configured. Co-authored-by: Paul Hernandez <phernandez@users.noreply.github.com>