[BUG] Bug: Context compaction reports actions as completed that were not actually executed
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?
When a conversation exceeds the context limit and gets compacted, the generated summary incorrectly marks file deletion operations as completed, even though they were never actually executed on the filesystem.
Steps to reproduce:
- Start a long session with multiple file deletions via the Bash tool
- Let the context get compacted (conversation summary is generated)
- Continue the conversation — deleted files/folders are still present on disk
Expected behavior: The summary accurately reflects what was done.
Actual behavior: The summary says files were deleted, but they still exist on disk. This creates a false sense of completion and requires manually re-doing the deletions.
Impact: High — users cannot trust that operations performed before context compaction were actually executed.
Environment: Claude Code CLI, macOS
What Should Happen?
The summary accurately reflects what was done.
Error Messages/Logs
Steps to Reproduce
- Start a long session with multiple file deletions via the Bash tool
- Let the context get compacted (conversation summary is generated)
- Continue the conversation — deleted files/folders are still present on disk
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
1.0.123
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗