{"version":"2.1.280","anchor":"background-sessions-now-drop-and-report-invalid-environment","canonical_anchor":"background-sessions-now-drop-and-report-invalid-environment","heading":"Background sessions now drop and report invalid environment variables","tier":"notice","area":"Sessions","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.280\/e\/background-sessions-now-drop-and-report-invalid-environment","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.280","markdown":"### Background sessions now drop and report invalid environment variables\n\nBackground sessions now reject invalid environment variables instead of silently passing them through\n\n**What**\n\nWhen Claude Code hands environment variables to a background or \"spare\" session, it now checks each one: variables with invalid names, non-string values, or NUL bytes in the value are dropped rather than passed through. A warning is logged naming which keys were dropped, noting that \"programs it starts will not see it,\" and the drop is recorded in telemetry by category.\n\n**Why**\n\nThis prevents malformed environment variables from silently breaking or misbehaving in background sessions, and makes it clear in the logs when and why a variable didn't make it through.\n\n- Area: Sessions\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 1\/5"}