Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.307 ·

Managed settings: policyOnlyLeads changes how admin env blocks are merged

A new policyOnlyLeads result in managed settings merging can override CLAUDE_CODE_DISABLE_ADMIN_ENV_UNION and keep admin env blocks merged

Group of 2 Use it now Improvements
JSON All of v2.1.307
Use it nowTier: how much it should matter to you
3Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
Managed SettingsArea: what it touches
ImprovementsKind: in v2.1.307,
What probably matters to youSection of the release

Unclear How policyOnlyLeads gets set in a managed policy is not stated.

What

Managed settings are settings an administrator applies to Claude Code, and they can come from several admin sources. How these sources are combined has changed.

  • The merging code gains a server tier handled as "policy only" (policyOnlyServerTier). When that server tier is "unconfirmed", it is treated as held, and the merge returns a policyOnlyLeads result. Some keys are merged from the kept slot into the admin tier.
  • Setting CLAUDE_CODE_DISABLE_ADMIN_ENV_UNION normally makes Claude Code use only the highest-priority source's env block instead of merging env blocks across admin sources. It now does that only when policyOnlyLeads is not set. When policyOnlyLeads is set, the env blocks from all admin sources are still merged even with the variable set.

Why

If you rely on CLAUDE_CODE_DISABLE_ADMIN_ENV_UNION to stop admin env blocks from merging, it may no longer take effect when this policy state applies. Admins should check which environment values actually reach Claude Code.

Read from
What the documentation says
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtHow `policyOnlyLeads` gets set in a managed policy is not stated.

See this entry in the whole of v2.1.307 →

Feedback