{"version":"2.1.337","anchor":"claude-code-resume-files-kept-env-var-skips-the-files-may-be","canonical_anchor":"claude-code-resume-files-kept-env-var-skips-the-files-may-be","heading":"New environment variable tells a resumed cloud session its files were kept","tier":"use","area":"Sessions","scope":"both","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337\/e\/claude-code-resume-files-kept-env-var-skips-the-files-may-be","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337","markdown":"### New environment variable tells a resumed cloud session its files were kept\n\nSetting CLAUDE_CODE_RESUME_FILES_KEPT stops a resumed remote session from assuming its files may be gone\n\n**What**\n\nWhen Claude Code resumes a remote session (one that runs in the cloud rather than on your own computer), it decides whether the files from that session may have been lost. A new environment variable, `CLAUDE_CODE_RESUME_FILES_KEPT`, now feeds that decision. An environment variable is a named setting you give a program when you start it.\n\nIf you set `CLAUDE_CODE_RESUME_FILES_KEPT`, the resume treats the files as kept instead of assuming they may be gone. An earlier signal that the files are gone still wins, so setting the variable does not override it.\n\n**Why**\n\nThis controls how a restored cloud session treats files it might otherwise assume it has lost. If you know the files are still there, the variable lets you tell Claude Code so.\n\n- Area: Sessions\n- Names: `CLAUDE_CODE_RESUME_FILES_KEPT`\n- Tier: Use it now\n- Useful: 5\/5\n- Signal: 3\/5\n- Scope: both\n- Heads-up: no"}