Summary
bm project set-cloud <name> does not fully remove the local project state, leaving the project in a local+cloud hybrid state instead of pure cloud.
Steps to reproduce
- Have a project
main configured as local (with a local path like /Users/me/basic-memory)
- Run
bm project set-cloud main
- Run
bm tool list-projects
Expected
main project should have:
source: "cloud"
local_path: null
- No entry in the
project table of memory.db pointing to the old local path
Actual
main project shows:
source: "local+cloud"
local_path: "/Users/me/basic-memory" (the old local path)
- The
project table in memory.db still contains a row with the old local path
The config file (~/.basic-memory/config.json) is updated to "mode": "cloud" but still retains the old "path" value. The database project table is not cleaned up at all.
Workaround
- Remove the project entry from
config.json (or set path to the cloud path)
- Delete the row from the
project table in memory.db:
DELETE FROM project WHERE name = 'main';
- Remove the (now empty) local directory if it still exists
After this, bm tool list-projects correctly shows source: "cloud".
Environment
- basic-memory: 0.20.2
- macOS arm64
- Python via uv
Summary
bm project set-cloud <name>does not fully remove the local project state, leaving the project in alocal+cloudhybrid state instead of purecloud.Steps to reproduce
mainconfigured as local (with a local path like/Users/me/basic-memory)bm project set-cloud mainbm tool list-projectsExpected
mainproject should have:source: "cloud"local_path: nullprojecttable ofmemory.dbpointing to the old local pathActual
mainproject shows:source: "local+cloud"local_path: "/Users/me/basic-memory"(the old local path)projecttable inmemory.dbstill contains a row with the old local pathThe config file (
~/.basic-memory/config.json) is updated to"mode": "cloud"but still retains the old"path"value. The databaseprojecttable is not cleaned up at all.Workaround
config.json(or set path to the cloud path)projecttable inmemory.db:After this,
bm tool list-projectscorrectly showssource: "cloud".Environment