{"name":"CLAUDE_BG_MEMORY_TOGGLED_OFF","slug":"claude-bg-memory-toggled-off","family":"env","title":"Environment variables","noun":"environment variable","description":"Background sessions now start from a cleaned environment, with login variables added back and some internal variables left out","description_source":"entry","described_by":{"version":"2.1.281","anchor":"background-session-child-environment-auth-and-new-variables"},"presence":{"first_seen":"2.1.147","removed_in":null,"in_current_build":true,"newest_mined":"2.1.309","builds":141,"mined_builds":150,"first_cited":null},"aliases":[],"entries":[{"version":"2.1.285","anchor":"background-sessions-gain-claude-bg-auto-memory-off-env-passt","heading":"Background sessions gain a variable for automatic memory being off","line":"`CLAUDE_BG_AUTO_MEMORY_OFF` is now handled for background sessions alongside `CLAUDE_BG_MEMORY_TOGGLED_OFF`","released_at":"2026-09-29 17:32:09","reason":"found in this entry's text"},{"version":"2.1.281","anchor":"background-session-child-environment-auth-and-new-variables","heading":"Background-session child environment: auth and new variables handled explicitly","line":"Background sessions now start from a cleaned environment, with login variables added back and some internal variables left out","released_at":"2026-09-23 17:01:17","reason":"found in this entry's text"}],"entries_total":2,"docs":[],"docs_total":0,"gates":[],"related":[{"name":"CLAUDE_BG_AUTH_SNAPSHOT_PATH","slug":"claude-bg-auth-snapshot-path","description":"Bridge-spawned child sessions no longer inherit your credential environment variables."},{"name":"CLAUDE_BG_AUTO_MEMORY_OFF","slug":"claude-bg-auto-memory-off","description":"Claude Code now tracks auto-memory being off for a session and adds a notice that memory is still paused from earlier"},{"name":"CLAUDE_BG_BACKEND","slug":"claude-bg-backend","description":"With the daemon background backend, the display survives stdout disappearing instead of dying."},{"name":"CLAUDE_BG_CARRIED_PROMPTS_SHA256","slug":"claude-bg-carried-prompts-sha256","description":"Claude Code now passes `CLAUDE_BG_CARRIED_PROMPTS_SHA256` to background sessions alongside `CLAUDE_BG_WORKSPACE_TRUSTED`"},{"name":"CLAUDE_BG_CLAIM_AUTH","slug":"claude-bg-claim-auth","description":"Claude Code adds seven environment variable names for background sessions and terminal hosts to a list it keeps of such names"},{"name":"CLAUDE_BG_DISPATCHER_RATE_LIMIT_TIER","slug":"claude-bg-dispatcher-rate-limit-tier","description":"Two env vars let background dispatchers inherit your plan and rate tier without an API call."},{"name":"CLAUDE_BG_DISPATCHER_SUBSCRIPTION_TYPE","slug":"claude-bg-dispatcher-subscription-type","description":"Two env vars let background dispatchers inherit your plan and rate tier without an API call."},{"name":"CLAUDE_BG_GATEWAY_WITHHELD","slug":"claude-bg-gateway-withheld","description":"`CLAUDE_BG_GATEWAY_WITHHELD` is now removed along with other background-session variables, so it does not carry into sessions started from there"},{"name":"CLAUDE_BG_ISOLATION","slug":"claude-bg-isolation","description":"Background worktree isolation now reads CLAUDE_BG_ISOLATION from a captured environment copy."},{"name":"CLAUDE_BG_POST_CLEAR_RESPAWN","slug":"claude-bg-post-clear-respawn","description":"Set to `1` by the background-session daemon when it respawns a background session whose session id changed since it was dispatched, as after a `\/clear`. When truthy at startup, two checks that otherwise apply to launches without `--resume` or `--continue` are skipped: validation of an inline `--agents` JSON string and the `--agent '<name>' not found` error."}],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/claude-bg-memory-toggled-off","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}