fix(core): transform nested block labels on git memory enable (#9339)

Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
Sarah Wooders
2026-02-05 23:32:26 -08:00
committed by Caren Thomas
parent 58069d760e
commit 93e453ef8f
2 changed files with 11 additions and 5 deletions

View File

@@ -658,7 +658,7 @@ class SyncServer(object):
if request.memory_blocks:
transformed_blocks = []
for block in request.memory_blocks:
if "/" not in block.label:
if not block.label.startswith("system/"):
block = block.model_copy(update={"label": f"system/{block.label}"})
transformed_blocks.append(block)
updates["memory_blocks"] = transformed_blocks