[BUG]

Resolved 💬 3 comments Opened Nov 2, 2025 by JirA44 Closed Nov 6, 2025

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

  1. Intermittent crashes/bugs of Claude Code
  2. Progressive accumulation of corrupted files:
  • First corrupted file: .claude.json.corrupted.1760600454420
  • Last corrupted file: .claude.json.corrupted.1761875435954
  • Total: 44 corrupted files
  1. No automatic cleanup mechanism

Reproduction

  1. Use Claude Code for multiple sessions
  2. Observe the accumulation of .claude.json.corrupted.* files in %USERPROFILE%
  3. 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

  1. Auto-cleanup: Automatically remove corrupted files older than 7 days
  2. Retention limit: Keep only the last 3 corrupted files for debugging
  3. Notification: Alert the user when >10 corrupted files are detected
  4. Robustness: Improve error handling when writing .claude.json
  5. 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

  1. What triggers the creation of a .corrupted.* file?
  1. Is it related to sudden application crashes?
  1. 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

  1. Intermittent crashes/bugs of Claude Code
  2. Progressive accumulation of corrupted files:
  • First corrupted file: .claude.json.corrupted.1760600454420
  • Last corrupted file: .claude.json.corrupted.1761875435954
  • Total: 44 corrupted files
  1. No automatic cleanup mechanism

Reproduction

  1. Use Claude Code for multiple sessions
  2. Observe the accumulation of .claude.json.corrupted.* files in %USERPROFILE%
  3. 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

  1. Auto-cleanup: Automatically remove corrupted files older than 7 days
  2. Retention limit: Keep only the last 3 corrupted files for debugging
  3. Notification: Alert the user when >10 corrupted files are detected
  4. Robustness: Improve error handling when writing .claude.json
  5. 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

  1. What triggers the creation of a .corrupted.* file?
  1. Is it related to sudden application crashes?
  1. 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_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗