Follow Discord
Sweep 23 Nov 2026 · 19:13Z Build v2.1.331 548 read Stable v2.1.323 Latest v2.1.330 Next v2.1.331 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.331 ·

Temporary folder may need to be private to you

On macOS and Linux a remote switch can make Claude Code refuse a temporary folder it can't use safely, pointing you to CLAUDE_CODE_TMPDIR

You'll notice Improvements
JSON All of v2.1.331
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
EnvironmentArea: what it touches
ImprovementsKind: in v2.1.331,
ImprovementsSection of the release

Unclear It is not known whether this check is switched on by default.

What

On platforms other than Windows, the way Claude Code picks its temporary folder can now depend on a remote switch. When that applies and the folder cannot be used, Claude Code stops with an error telling you to restart with CLAUDE_CODE_TMPDIR set to a folder only you can write to.

Why

This tightens security around temporary files, so other users on the same machine cannot interfere with them. If you see this error, setting CLAUDE_CODE_TMPDIR to a private folder fixes it.

Read from
Names in the bundleCLAUDE_CODE_TMPDIR
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtIt is not known whether this check is switched on by default.

See this entry in the whole of v2.1.331 →

Feedback