fix(core): transform nested block labels on git memory enable (#9339)
Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
committed by
Caren Thomas
parent
58069d760e
commit
93e453ef8f
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user