{"version":"2.1.281","anchor":"settings-env-blocks-withheld-from-some-sources-when-the-stor","canonical_anchor":"settings-env-blocks-withheld-from-some-sources-when-the-stor","heading":"Settings env values are now tracked, with groundwork to withhold them from some sources","tier":"soon","area":"Settings","url":"https:\/\/changelogs.core-directive.com\/v\/2.1.281\/e\/settings-env-blocks-withheld-from-some-sources-when-the-stor","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.281","markdown":"### Settings env values are now tracked, with groundwork to withhold them from some sources\n\nClaude Code now records which environment variables came from settings and adds a check to withhold settings env blocks, currently inactive\n\n**Unclear.** The finding does not say which settings sources would be withheld or what a pinned login means.\n\n**What**\n\nSettings files can set environment variables, the named values programs read at startup, through an `env` block. This release changes how those are handled.\n\n- The env manager now keeps a record of every env value offered by settings, keyed by the upper-cased variable name, and adds `isSettingsSourcedEnvValue` so later checks can tell whether a variable's current value came from settings. The record is cleared when settings are reset.\n\n- `filterSettingsEnv` now returns nothing for a settings source when `withholdsEnvFrom(source)` is true, and `processWrapper` goes through the same check instead of being read directly from each source. In this build the switch that would turn this on always returns false, so nothing is withheld yet.\n\n- Claude Code now warns when env keys meant for spawning host processes are dropped.\n\n- Settings are reset if the path of the user settings file moves while settings are being applied.\n\n**Why**\n\nFor now this changes nothing you can see beyond the new warning. The members suggest it prepares for a mode where project or user settings cannot redirect environment variables for a pinned login.\n\n- Area: Settings\n- Tier: Nothing to try yet\n- Useful: 1\/5\n- Signal: 2\/5\n- Present in the build but not switched on"}