Skip to content

Feature Request: Automated Session Memory Preservation & Synthesis #40418

@ZinkDifferent

Description

@ZinkDifferent

Summary

Add automatic session memory preservation when /new (session reset) is executed, enabling continuous learning across sessions.

Problem

Currently, when a session resets (/new), all context is lost. There's no:

  • Automatic preservation before reset
  • Synthesis of prior sessions into summaries
  • Linking between summaries and full conversation transcripts

Proposed Solution

When /new is executed, automatically:

  1. Save current session state to .session_memory_preserve.json
  2. Export full conversation to memory/<session-id>.md
  3. On new session start: read prior memories, synthesize summary, write to daily memory with links

Why This Matters

  • Enables continuous learning across sessions
  • Approximates persistent AI memory (closer to Apple Knowledge Navigator vision)
  • Prevents loss of context, decisions, and corrections

Reference

Detailed protocol: SESSION_RELOAD_INSTRUCTIONS.md (in workspace)

Implementation Ideas

  • Add as native OpenClaw hook on session-end/session-start events
  • Or create wrapper script that intercepts /new command

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Normal backlog priority with limited blast radius.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:needs-security-reviewClawSweeper marked this issue as needing security-sensitive review.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:securitySecurity boundary, credential, authz, sandbox, or sensitive-data risk.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🌊 off-meta tidepoolIssue quality rating does not apply to this item.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions