Skip to content

fix(dream): restore cursor with memory state#3660

Merged
Re-bin merged 1 commit into
HKUDS:mainfrom
Jefsky:fix-dream-restore-cursor
May 6, 2026
Merged

fix(dream): restore cursor with memory state#3660
Re-bin merged 1 commit into
HKUDS:mainfrom
Jefsky:fix-dream-restore-cursor

Conversation

@Jefsky
Copy link
Copy Markdown
Contributor

@Jefsky Jefsky commented May 6, 2026

Summary

  • Track memory/.dream_cursor in the Dream memory GitStore so restores roll back the cursor alongside memory files.
  • Add a regression test covering Git-backed Dream restore cursor rollback.
  • Tidy existing lint issues in the touched memory module so focused checks pass.

Fixes #3657.

Test plan

  • uv run pytest tests/agent/test_memory_store.py::TestDreamCursor tests/command/test_builtin_dream.py
  • uv run ruff check nanobot/agent/memory.py tests/agent/test_memory_store.py
  • git diff --check

Track the Dream cursor in memory versioning so restores do not skip history after rolling back Dream commits.

Co-authored-by: Cursor <cursoragent@cursor.com>
@chengyongru chengyongru added enhancement New feature or request valid labels May 6, 2026
Copy link
Copy Markdown
Collaborator

@Re-bin Re-bin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request valid

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dream restore doesn't roll back .dream_cursor

3 participants