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
fix(core): honor BASIC_MEMORY_CONFIG_DIR across remaining call sites
Several modules were hardcoding ``Path.home() / ".basic-memory"`` when
resolving Basic Memory state, which ignored ``BASIC_MEMORY_CONFIG_DIR``
and caused split state when users isolated config and the database
under a redirected data directory:
- utils.setup_logging — log file
- ignore_utils.get_bmignore_path — .bmignore
- sync.watch_service.WatchService.status_path — watch-status.json
- services.project_service.get_system_status — watch-status.json read
- cli.commands.cloud.rclone_commands.get_project_bisync_state — bisync
state dir
Route each call site through resolve_data_dir() (or the already-threaded
config, where available) so all of these follow the same override.
Also simplify resolve_data_dir() to use Path.home() directly. Path.home()
already reads $HOME on POSIX and %USERPROFILE% on Windows, so the explicit
os.getenv("HOME", ...) dance was redundant and made tests fragile when
they patched os.name to simulate Windows on non-Windows hosts.
Adds regression tests for each call site that exercise the redirected
BASIC_MEMORY_CONFIG_DIR path.
Fixes#742
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Drew Cain <groksrc@gmail.com>
0 commit comments