Unclear It is not clear what the option for uploading beside the path is or how a reader turns it on.
What
CLAUDE_CODE_ATTACHMENTS_BY_PATH is an environment variable, a named value you set in your shell before starting Claude Code, that makes attachments be handled by their file path. It now changes more than before:
- Uploads: with it set, the attachment upload choice used to always be "none". It is now "none" only unless
uploadsBesidePathis set, a session check passes and thetengu_atomic_whaleflag is on. The flag's built-in default is on. - When those conditions pass, the environment-based upload routes (
env_brief_upload,env_ccr,env_byoc) are skipped, while thereplroute is still allowed. - SDK-hosted attachments: the
sdk_hostedattachment source is now only used when the variable is unset. With it set, that check returns false. - Skill message: when a file is refused because claude.ai would not save it as a skill, the message with the variable set drops the "not sent:" prefix and the "Fix the file and send it again" advice.
Why
If you set this variable, attachments can now be uploaded next to their path in hosted sessions where that was not possible before, and SDK-hosted attachment handling is switched off.
tengu_atomic_whale Not enough to sayNothing here resolved what this flag was doing on this version, so nothing here should be read as on or off.
This account: no value returned · anonymous baseline: no value returned · compiled default in v2.1.335: on
These values were read against a different version of Claude Code, so treat them as the nearest reading available instead of one taken on this release.
Read once, for one account on one subscription tier, against v2.1.335. It isn't a statement about your account. What a flag value here can and cannot tell you
It is not clear what the option for uploading beside the path is or how a reader turns it on.
New in this build: tengu_atomic_whale