[BUG]
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?
Claude crashs
What Should Happen?
Bug Report: Accumulation of corrupted .claude.json files
Problem Description
Claude Code has generated 44 .claude.json.corrupted.* files in the user directory, causing instability and recurring crashes.
Environment
- OS: Windows 11 (Build 10.0.26200.6899)
- Claude Code Version: 2.0.31
- Date of Discovery: 2025-11-02
Observed Symptoms
- Intermittent crashes/bugs of Claude Code
- Progressive accumulation of corrupted files:
- First corrupted file:
.claude.json.corrupted.1760600454420
- Last corrupted file:
.claude.json.corrupted.1761875435954
- Total: 44 corrupted files
- No automatic cleanup mechanism
Reproduction
- Use Claude Code for multiple sessions
- Observe the accumulation of
.claude.json.corrupted.*files in%USERPROFILE% - Bugs/crashes become more frequent over time
Impact
- Increasing application instability
- Need for periodic manual cleanup
- Risk of data/configuration loss
- Degraded user experience
Temporary solution applied
Remove-Item 'C:\Users\[USERNAME]\.claude.json.corrupted.*' -Force
Suggestions for improvement
- Auto-cleanup: Automatically remove corrupted files older than 7 days
- Retention limit: Keep only the last 3 corrupted files for debugging
- Notification: Alert the user when >10 corrupted files are detected
- Robustness: Improve error handling when writing
.claude.json - Logs: Add logs explaining why a file is marked as corrupted
Affected Logs/Files
List of corrupted files found:
.claude.json.corrupted.1760600454420.claude.json.corrupted.1760655596703.claude.json.corrupted.1760658073261- ... (41 other files)
Questions for the team
- What triggers the creation of a
.corrupted.*file?
- Is it related to sudden application crashes?
- Is there a planned automatic recovery mechanism?
---
Note: This bug affects the long-term user experience and should be addressed to improve the stability of Claude Code on Windows.
Error Messages/Logs
Steps to Reproduce
Bug Report: Accumulation of corrupted .claude.json files
Problem Description
Claude Code has generated 44 .claude.json.corrupted.* files in the user directory, causing instability and recurring crashes.
Environment
- OS: Windows 11 (Build 10.0.26200.6899)
- Claude Code Version: 2.0.31
- Date of Discovery: 2025-11-02
Observed Symptoms
- Intermittent crashes/bugs of Claude Code
- Progressive accumulation of corrupted files:
- First corrupted file:
.claude.json.corrupted.1760600454420
- Last corrupted file:
.claude.json.corrupted.1761875435954
- Total: 44 corrupted files
- No automatic cleanup mechanism
Reproduction
- Use Claude Code for multiple sessions
- Observe the accumulation of
.claude.json.corrupted.*files in%USERPROFILE% - Bugs/crashes become more frequent over time
Impact
- Increasing application instability
- Need for periodic manual cleanup
- Risk of data/configuration loss
- Degraded user experience
Temporary solution applied
Remove-Item 'C:\Users\[USERNAME]\.claude.json.corrupted.*' -Force
Suggestions for improvement
- Auto-cleanup: Automatically remove corrupted files older than 7 days
- Retention limit: Keep only the last 3 corrupted files for debugging
- Notification: Alert the user when >10 corrupted files are detected
- Robustness: Improve error handling when writing
.claude.json - Logs: Add logs explaining why a file is marked as corrupted
Affected Logs/Files
List of corrupted files found:
.claude.json.corrupted.1760600454420.claude.json.corrupted.1760655596703.claude.json.corrupted.1760658073261- ... (41 other files)
Questions for the team
- What triggers the creation of a
.corrupted.*file?
- Is it related to sudden application crashes?
- Is there a planned automatic recovery mechanism?
---
Note: This bug affects the long-term user experience and should be addressed to improve the stability of Claude Code on Windows.
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.0.31
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗