fix(memory): preserve Dream input integrity (#5114)
This commit is contained in:
@@ -589,7 +589,7 @@ class MemoryStore:
|
||||
|
||||
batch = entries[:max_entries]
|
||||
history_text = "\n".join(
|
||||
f"[{e['timestamp']}] {truncate_text(e['content'], 500)}"
|
||||
f"[{e['timestamp']}] {truncate_text(e['content'], 1000)}"
|
||||
for e in batch
|
||||
)
|
||||
template = self._dream_template()
|
||||
@@ -670,6 +670,7 @@ class MemoryStore:
|
||||
tools.register(WriteFileTool(
|
||||
workspace=workspace,
|
||||
allowed_dir=skills_dir,
|
||||
extra_write_allowed_files=editable_files,
|
||||
file_states=file_states,
|
||||
))
|
||||
return tools
|
||||
|
||||
Reference in New Issue
Block a user