Claude Code v2.1.45 ·
Improved Sandbox Temporary Directory Documentation
EntryKind: in v2.1.45,
ChangesSection of the release
What
The Bash tool system prompt now provides clearer guidance on using temporary directories in sandbox mode.
Details
- Now recommends using
$TMPDIR environment variable instead of hardcoded /tmp/claude - Notes that TMPDIR is automatically set to the correct sandbox-writable directory
- Advises that most programs respecting TMPDIR will automatically use the correct directory
Evidence
Updated bash system prompt (search for "TMPDIR is automatically set to the correct sandbox-writable directory")
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
See this entry in the whole of v2.1.45 →