{"version":"2.1.334","anchor":"ignore-persisted-trust-now-sets-the-env-var-to-on","canonical_anchor":"ignore-persisted-trust-now-sets-the-env-var-to-on","heading":"CLAUDE_CODE_IGNORE_PERSISTED_TRUST is now set to \"on\" and only when unset","tier":"notice","area":"Trust","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334\/e\/ignore-persisted-trust-now-sets-the-env-var-to-on","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334","markdown":"### CLAUDE_CODE_IGNORE_PERSISTED_TRUST is now set to \"on\" and only when unset\n\n`--ignore-persisted-trust` now sets `CLAUDE_CODE_IGNORE_PERSISTED_TRUST` to \"on\" instead of \"1\", and no longer overwrites a value already set\n\n**What**\n\nThe hidden `--ignore-persisted-trust` flag makes one run of Claude Code ignore saved folder trust. It does this through an environment variable, a named setting a program passes to the programs it starts. Two things changed about that variable:\n\n- `CLAUDE_CODE_IGNORE_PERSISTED_TRUST` is now set to `\"on\"` instead of `\"1\"`.\n\n- On the code path that adds `--disallowedTools *` when saved trust is ignored, the variable is now set only if it is not already set. It used to be set every time. Blocking all tools on this path works the same as before.\n\n**Why**\n\nScripts or tools that check whether this variable equals `\"1\"` will no longer match and should check for `\"on\"` or for any value. A value set earlier is now kept instead of overwritten.\n\n- Area: Trust\n- Names: `CLAUDE_CODE_IGNORE_PERSISTED_TRUST`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: yes"}