{"version":"2.1.329","anchor":"session-persistence-check-drops-test-env-condition","canonical_anchor":"session-persistence-check-drops-test-env-condition","heading":"Test runs no longer turn off session saving on their own","tier":"notice","area":"Sessions","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.329\/e\/session-persistence-check-drops-test-env-condition","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.329","markdown":"### Test runs no longer turn off session saving on their own\n\nRunning under a test setup no longer disables session saving unless TEST_ENABLE_SESSION_PERSISTENCE is set\n\n**What**\n\nA session is one conversation with Claude Code, and Claude Code normally saves it so you can return to it later. When Claude Code ran inside a test setup without `TEST_ENABLE_SESSION_PERSISTENCE` set, it used to turn session saving off. That condition is gone. Saving is now turned off only when:\n\n- it is explicitly disabled\n\n- prompt history is skipped, through `CLAUDE_CODE_SKIP_PROMPT_HISTORY`\n\n- Claude Code is running inside another Claude Code session\n\n**Why**\n\nThis mostly affects internal testing, but test runs now save sessions by default.\n\n- Area: Sessions\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: yes"}