{"version":"2.1.331","anchor":"spawned-process-env-extendenv-forced-off-when-an-explicit-e","canonical_anchor":"spawned-process-env-extendenv-forced-off-when-an-explicit-e","heading":"Some programs Claude Code starts no longer inherit its environment","tier":"internal","area":"Environment","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331\/e\/spawned-process-env-extendenv-forced-off-when-an-explicit-e","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331","markdown":"### Some programs Claude Code starts no longer inherit its environment\n\nIn one case, a program Claude Code launches no longer receives Claude Code's own environment variables\n\n**Unclear.** It is not clear which case switches off the inherited environment.\n\n**What**\n\nWhen Claude Code starts another program, that program normally receives a copy of Claude Code's environment variables, the named settings a program is given when it starts. In one case, Claude Code now switches this off, so the program does not get those variables. In every other case, it behaves as before.\n\n**Why**\n\nIf a command Claude Code runs depends on a variable from your shell, it may not see that variable in this case.\n\n- Area: Environment\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: yes"}