{"name":"CLAUDE_CODE_ATTACHMENTS_IN_USER_DATA","slug":"claude-code-attachments-in-user-data","family":"env","title":"Environment variables","noun":"environment variable","description":"Remote sessions can keep attachments in a user-data folder when `CLAUDE_CODE_ATTACHMENTS_IN_USER_DATA` is set, unless data retention rules apply","description_source":"entry","described_by":{"version":"2.1.301","anchor":"remote-session-attachments-in-user-data-path-env-gated-and"},"presence":{"first_seen":"2.1.301","removed_in":null,"in_current_build":true,"newest_mined":"2.1.308","builds":8,"mined_builds":149,"first_cited":{"version":"2.1.301","released_at":"2026-10-15 14:34:23","spans":1}},"aliases":[],"entries":[{"version":"2.1.301","anchor":"remote-session-attachments-in-user-data-path-env-gated-and","heading":"New CLAUDE_CODE_ATTACHMENTS_IN_USER_DATA setting for remote session attachments","line":"Remote sessions can keep attachments in a user-data folder when `CLAUDE_CODE_ATTACHMENTS_IN_USER_DATA` is set, unless data retention rules apply","released_at":"2026-10-15 14:34:23","reason":"found in this entry's text, named in this entry"},{"version":"2.1.301","anchor":"attachments-in-user-data-probe-for-remote-sessions-behind-cl","heading":"Cloud sessions check whether attachments could be stored with user data","line":"Remote sessions with CLAUDE_CODE_ATTACHMENTS_IN_USER_DATA set now check at startup whether attachments could be kept with user data","released_at":"2026-10-15 14:34:23","reason":"found in this entry's text, named in this entry"}],"entries_total":2,"docs":[],"docs_total":0,"gates":[],"related":[{"name":"CLAUDE_CODE_ATTACHMENTS_BY_PATH","slug":"claude-code-attachments-by-path","description":"Setting `CLAUDE_CODE_ATTACHMENTS_BY_PATH` stops Claude Code uploading files it sends you, enables the send-file tool and keeps its results in subagents"}],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/claude-code-attachments-in-user-data","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}