Unclear What this setting controls is not known.
What
A scratchpad is a folder where a session keeps temporary working files. This build adds code that can redirect a scratchpad path to a subfolder when the target does not exist or is a folder. It is controlled by a server-side switch called a gate, tengu_rosy_mitten. The gate takes the values on, keep or off, and its built-in fallback is off. It is always treated as off in remote sessions or when CLAUDE_CODE_REMOTE is set. Nothing has been read about what this gate returns, so whether it is turned on anywhere is unknown.
Which places the redirect can apply to depends on the entrypoint, meaning the app Claude Code was started from:
cliandclaude-vscodealways qualify.claude-desktopqualifies only when the new environment variableCLAUDE_CODE_HOST_SHORT_SCRATCHPADis set. An environment variable is a setting passed to a program when it starts.- Background (
bg) sessions and any other entrypoint never qualify.
CLAUDE_CODE_HOST_SHORT_SCRATCHPAD is added to the list of environment variables managed by the host app. It does not appear in the previous build.
Why
This changes where a session's scratch files can end up. The desktop app can now opt into the same behaviour the CLI and VS Code get. In practice the redirect only matters if the gate is turned on from the server.
What this setting controls is not known.