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
@@ -136,7 +136,8 @@ async def cmd_dream_log(ctx: CommandContext) -> OutboundMessage:
content = commit.format(diff)
else:
# Default: show the latest commit's diff
result = git.show_commit_diff(git.log(max_entries=1)[0].sha) if git.log(max_entries=1) else None
commits = git.log(max_entries=1)
result = git.show_commit_diff(commits[0].sha) if commits else None
if result:
commit, diff = result
content = commit.format(diff)