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
Tests create managed databases in the real home: DatabaseManager::create(None) ignores its registry's directory #3780
DatabaseManager::create(name, None) places the new file under the ambient nodespace_dir()/database/<id>.db, which follows NODESPACE_HOME and otherwise the real home, even when the manager was loaded from a registry elsewhere. An in-process manager in a test (spawn_routing_daemon, registry in a temp dir) therefore writes into ~/.nodespace/database/.
Observed: every run of packages/cli/tests/it/mcp_integration.rs leaves three ULID-named ~1 MB databases there (its create_database helper passes path: None three times). 243 accumulated on one machine.
Fix
Derive the managed database directory from the manager's own registry location (<registry dir>/database). In production the registry is nodespace_dir()/databases.toml, so the path is unchanged; a manager loaded from a temp registry stays inside it by construction, and no test needs to remember to isolate.
Acceptance Criteria
create with no path places the file under the registry's directory, with a test
Activity
Create managed databases beside the manager's registry, not under the…