Skip to content

Add OpenClaw session archiving - #2

Merged
maedmatt merged 1 commit into
maedmatt:mainfrom
thefoxkai:feat/openclaw-sessions
Aug 24, 2026
Merged

Add OpenClaw session archiving#2
maedmatt merged 1 commit into
maedmatt:mainfrom
thefoxkai:feat/openclaw-sessions

Conversation

@thefoxkai

@thefoxkai thefoxkai commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • discover every OpenClaw agent's top-level sessions directory
  • honor OPENCLAW_STATE_DIR, falling back to ~/.openclaw
  • archive all persistent session artifacts while skipping lock and temporary files
  • avoid unrelated agent state, including auth data and embedded Codex sessions
  • document OpenClaw support and cover it with focused tests

Validation

  • uv run pytest
  • uv run ruff check .
  • uv run ruff format --check .

Live OpenClaw validation against four local agent stores:

  • archived 4,542 files totaling 521,624,510 bytes
  • compared every source and destination file byte-for-byte: zero missing, extra, or mismatched files
  • confirmed all archived files use mode 0600 and directories use mode 0700
  • confirmed a stable rerun updates zero files
  • confirmed one live transcript change updates one file, followed by another zero-update rerun

@maedmatt maedmatt left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

lgtm

@maedmatt
maedmatt merged commit 6a96901 into maedmatt:main Aug 24, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants