Files
basicmachines-co-basic-memory/test-int/cli
claude[bot] adf5d7049b fix: Prevent 'main' project from being recreated after removal (#397)
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>
2025-11-10 22:50:30 +00:00
..