claude-code - 💡(How to fix) Fix Auto Dream deletes memory files without user consent — 23 files lost in one day [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#47959Fetched 2026-04-15 06:37:25
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
0
Timeline (top)
labeled ×5commented ×1

After enabling autoDreamEnabled: true in ~/.claude/settings.json, Auto Dream silently deleted 23 memory files within approximately 24 hours. No confirmation was requested, and no record of what was deleted or why was provided.

Root Cause

After enabling autoDreamEnabled: true in ~/.claude/settings.json, Auto Dream silently deleted 23 memory files within approximately 24 hours. No confirmation was requested, and no record of what was deleted or why was provided.

Fix Action

Workaround

Set "autoDreamEnabled": false in ~/.claude/settings.json and manage memory manually during session end procedures.

RAW_BUFFERClick to expand / collapse

Description

After enabling autoDreamEnabled: true in ~/.claude/settings.json, Auto Dream silently deleted 23 memory files within approximately 24 hours. No confirmation was requested, and no record of what was deleted or why was provided.

How it was discovered

The deletions were discovered using claude-with-me, a personal dashboard that visualizes Claude Code's memory state via claude-mem. After enabling Auto Dream, the dashboard showed a noticeable drop in memory entries, prompting a manual diff against a pre-Auto Dream backup.

What happened

  • Enabled Auto Dream: 2026-04-14
  • Discovered deletions: 2026-04-14 (same day, next session)
  • Files deleted: 23 total
    • 5 user profile files (communication style, AI relationship, domain knowledge, machine spec, email style)
    • 14 feedback files (copyright rules, documentation strategy, testing strategy, coding philosophy, etc.)
    • 4 reference files (shell env, Colima mounts, project references)
  • File contents modified: 0 (only deletions, no content corruption)
  • Backup available: Yes — I had manually created a backup before enabling, which saved the data

Impact

  • user_communication_style.md was deleted — this caused Claude to lose the user's preferred communication style (casual Korean with specific nickname rules) in the very next session. The user had to re-explain tone preferences that had been accumulated over weeks of interaction.
  • feedback_copyright_critical.md was deleted — a rule that had been reinforced 3 times by the user (never use "Author: Claude" in copyright headers)
  • Multiple feedback files containing accumulated user preferences and corrections were lost — these represent weeks of iterative refinement that cannot be automatically reconstructed
  • Even after restoring from backup, a duplicate file was found (user_domain_knowledge.md duplicated user_role_and_domain.md), suggesting the restore process or prior Auto Dream activity may have caused inconsistencies

Recovery & Verification

Recovery was performed from a manual backup created before enabling Auto Dream.

Post-recovery audit (2026-04-15):

  • All 43 memory files verified: frontmatter valid, content intact, no empty files
  • MEMORY.md index cross-checked: 100% match between index entries and filesystem
  • All 3 CRITICAL files confirmed present: feedback_copyright_critical.md, feedback_session_end_merge.md, feedback_no_autodream.md
  • 1 duplicate file discovered and cleaned up (user_domain_knowledge.md — identical to user_role_and_domain.md)
  • autoDreamEnabled set to false permanently as a workaround

Key takeaway: Without the manual backup, all 23 files would have been permanently lost. Users who enable Auto Dream without a backup have no recovery path.

Expected behavior

Auto Dream should consolidate and compress memory files, not delete them entirely. At minimum:

  • A log or summary of what was changed/deleted should be provided
  • User confirmation should be required before deleting any memory file
  • Files marked as CRITICAL or frequently referenced should never be auto-deleted

Steps to reproduce

  1. Create multiple memory files across user, feedback, reference, and project types
  2. Enable autoDreamEnabled: true in settings.json
  3. Close the session
  4. Open a new session and compare memory files — some will be missing

Environment

  • Claude Code CLI (latest stable, auto-updates enabled)
  • macOS (Apple Silicon)
  • ~/.claude/settings.json with "autoDreamEnabled": true

Related issues

  • #38459 — Memory files and conversation history lost
  • #38493 — Auto-dream: identity, accuracy, transparency gaps
  • #39204 — Auto-dream ignores autoMemoryDirectory

Workaround

Set "autoDreamEnabled": false in ~/.claude/settings.json and manage memory manually during session end procedures.

extent analysis

TL;DR

Disable autoDreamEnabled in ~/.claude/settings.json to prevent silent deletion of memory files.

Guidance

  • Verify that a manual backup of memory files exists before enabling autoDreamEnabled to ensure recoverability in case of data loss.
  • Review the list of deleted files to identify critical losses, such as user profile files or frequently referenced feedback files.
  • Consider setting up a regular backup process for memory files to mitigate the risk of data loss.
  • When re-enabling autoDreamEnabled, closely monitor the memory files for any unexpected changes or deletions.

Example

No code snippet is provided as the issue is related to configuration and data management.

Notes

The provided workaround of disabling autoDreamEnabled may not be a long-term solution, as it requires manual memory management. Further investigation into the autoDream feature and its intended behavior is necessary to determine a more permanent fix.

Recommendation

Apply the workaround by setting "autoDreamEnabled": false in ~/.claude/settings.json to prevent data loss until a more robust solution is available. This is recommended because it ensures that no further memory files are deleted silently, allowing users to manage their data safely.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

Auto Dream should consolidate and compress memory files, not delete them entirely. At minimum:

  • A log or summary of what was changed/deleted should be provided
  • User confirmation should be required before deleting any memory file
  • Files marked as CRITICAL or frequently referenced should never be auto-deleted

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Auto Dream deletes memory files without user consent — 23 files lost in one day [1 comments, 2 participants]