fix(memory): repair Dream follow-up paths and move GitStore to utils

Made-with: Cursor
This commit is contained in:
Xubin Ren
2026-04-04 04:49:42 +00:00
parent 30ea048f19
commit 7e0c196797
5 changed files with 8 additions and 6 deletions
+2 -1
View File
@@ -15,7 +15,7 @@ from nanobot.utils.helpers import ensure_dir, estimate_message_tokens, estimate_
from nanobot.agent.runner import AgentRunSpec, AgentRunner
from nanobot.agent.tools.registry import ToolRegistry
from nanobot.agent.git_store import GitStore
from nanobot.utils.git_store import GitStore
if TYPE_CHECKING:
from nanobot.providers.base import LLMProvider
@@ -569,6 +569,7 @@ class Dream:
# Git auto-commit (only when there are actual changes)
if changelog and self.store.git.is_initialized():
ts = batch[-1]["timestamp"]
sha = self.store.git.auto_commit(f"dream: {ts}, {len(changelog)} change(s)")
if sha:
logger.info("Dream commit: {}", sha)