Compare commits

...

1 Commits

Author SHA1 Message Date
claude[bot] 23b58e1921 fix: remove .env file loading from BasicMemoryConfig to prevent interference
This prevents Basic Memory from automatically loading .env files from the
current working directory, which was causing LOG_LEVEL and other environment
variable conflicts when running in project directories.

Users can still configure Basic Memory via:
- Environment variables with BASIC_MEMORY_ prefix
- ~/.basic-memory/config.json file
- Command line arguments

Fixes #227

Co-authored-by: Paul Hernandez <phernandez@users.noreply.github.com>
2025-09-26 18:13:07 +00:00
-2
View File
@@ -118,8 +118,6 @@ class BasicMemoryConfig(BaseSettings):
model_config = SettingsConfigDict(
env_prefix="BASIC_MEMORY_",
extra="ignore",
env_file=".env",
env_file_encoding="utf-8",
)
def get_project_path(self, project_name: Optional[str] = None) -> Path: # pragma: no cover