fix(memory): preserve Dream input integrity (#5114)

This commit is contained in:
chengyongru
2026-07-27 21:37:13 +08:00
committed by GitHub
parent e819b7eea4
commit f78ad59ed0
2 changed files with 24 additions and 7 deletions
+2 -1
View File
@@ -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