refactor: drop memory/ prefix from git memory repo file paths and update core memory rendering [LET-7356] (#9395)

This commit is contained in:
Sarah Wooders
2026-02-09 20:49:41 -08:00
committed by Caren Thomas
parent 5fd5a6dd07
commit bbc648909b
4 changed files with 70 additions and 36 deletions

View File

@@ -389,7 +389,7 @@ class GitEnabledBlockManager(BlockManager):
# Check which blocks are missing from repo
missing_blocks = []
for block in blocks:
expected_path = f"memory/{block.label}.md"
expected_path = f"{block.label}.md"
if expected_path not in repo_files:
missing_blocks.append(block)
@@ -552,7 +552,7 @@ class GitEnabledBlockManager(BlockManager):
if self.memory_repo_manager is None:
raise ValueError("Memory repo manager not configured")
path = f"memory/{label}.md" if label else None
path = f"{label}.md" if label else None
return await self.memory_repo_manager.get_history_async(
agent_id=agent_id,
actor=actor,