[BUG] corrupt .claude.json spamms a bunch of stupid files (like thousands of them) and ruins up previous config over some stupid comma or comment

Resolved 💬 6 comments Opened Sep 7, 2025 by Rykarix Closed Jan 8, 2026

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?

Guys

Can you think before adding some crazy for/while loop to things???

This is a totally unnecessary way of handling corrupt json settings files.

thanks

What Should Happen?

NOT THIS

https://github.com/user-attachments/assets/cb54051f-8774-4048-80e4-964ee7e2b3d5

Error Messages/Logs

something like:

Invalid config

Steps to Reproduce

Just deliberately corrupt the ~./.claude.json whilst claude is running and it literally blows up adding a bunch of backup .claude.json files.

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

1.0.108

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Other

Additional Information

Git bash for Windows _Native_ (not wsl)

View original on GitHub ↗

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