Environment
- Platform (select one):
- Claude CLI version: 1.0.35
- Operating System: macOS
- Terminal: Alacritty
Bug Description
I occasionally get my .claude.json wiped. I think that's happening because claude truncates it directly when writing an edit. and so if one process hasn't completed writing when another attempts to read, it'll get a corrupted file, and then wipes the whole thing
this becomes really evident when mounting it as a file to a container; if lots of claudes are running, and .claude.json is large, the container is fairly likely to get less than a full file given docker's mount performance
Expected Behavior
have claude do an atomic rename of .claude.json
Environment
Bug Description
I occasionally get my
.claude.jsonwiped. I think that's happening becauseclaudetruncates it directly when writing an edit. and so if one process hasn't completed writing when another attempts to read, it'll get a corrupted file, and then wipes the whole thingthis becomes really evident when mounting it as a file to a container; if lots of
claudes are running, and.claude.jsonis large, the container is fairly likely to get less than a full file given docker's mount performanceExpected Behavior
have claude do an atomic rename of
.claude.json