[BUG] - Serious Bug - Compacting from previous instances deleted all the files/documentation created during 1,5 hours
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Compact warning appeared at ~95% usage
- Ran /compact command
- Received error: "Cannot compact, navigate with Escape twice"
- Following error instructions deleted all files from current session
- Expected behavior: Compact should work OR navigation should preserve files
- Actual behavior: Files permanently deleted (not in recycle bin). Documentation Files are json workflows created during a 1.5 hour session were all deleted from my drive and could not recover from recycle bins also.
What Should Happen?
Why should a Claude session delete all files created even if the compact was done from last 2 sessions
Error Messages/Logs
Steps to Reproduce
I cannot reproduce the step as all the files are gone
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
No response
Claude Code Version
Claude Code: 2.0.14
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Cursor
Additional Information
No response
Found 3 possible duplicate issues:
- https://github.com/anthropics/claude-code/issues/8962
- https://github.com/anthropics/claude-code/issues/5462
- https://github.com/anthropics/claude-code/issues/8875
This issue will be automatically closed as a duplicate in 3 days.
- If your issue is a duplicate, please close it and 👍 the existing issue instead
- To prevent auto-closure, add a comment or 👎 this comment
🤖 Generated with Claude Code
This issue has been automatically closed as a duplicate of #8962.
If this is incorrect, please re-open this issue or create a new one.
🤖 Generated with Claude Code
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.