There are bug fixes that are nice — and there are ones that really matter, because they protect you from data loss. Claude Code 2.1.181 is firmly in the second camp. After the stability wave of the past few days, Anthropic follows up by tackling something you never want to experience from a coding tool: that it damages your files.
Three fixes against data loss
The most important fix is about write operations on network drives and cloud-sync folders. Until now, Write or Edit could leave behind empty or truncated files there — a nightmare on a OneDrive, Dropbox, or iCloud folder, because you might not notice for hours. That’s fixed now.
Second: if a session sat idle for a while, its history could be lost because another process cleaned up the transcript. Also gone. And third, Claude Code now catches a startup crash that hit when .claude.json was corrupted by broken null entries — instead of bailing out with a TypeError, the tool now comes up cleanly.
In the same breath, unnecessary config disk writes on every skill invocation were reduced. On Windows those didn’t just cost performance — they actively contributed to config corruption, a bug that basically fed itself.
A small shortcut for power users
Beyond the cleanup, there’s something new too: the /config key=value syntax. It lets you set any setting straight from the prompt, no clicking through menus. Sounds unspectacular, but it saves noticeable time day to day. There’s also a new sandbox.allowAppleEvents setting that lets sandboxed commands send Apple Events on macOS.
My take
I like that Anthropic is working on data integrity right now of all times. After the outages of the last few weeks, trust is the scarcest currency — and nothing destroys trust faster than a tool silently writing a file into oblivion. The fact that the cloud-sync folders got fixed shows the team is listening to real user setups, not just the ideal case. It’s the invisible kind of work nobody cheers for — and that’s exactly why it counts.
Sources: Claude Code Changelog, Releasebot: Claude Code