You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
SessionsArea: what it touches
ImprovementsKind: in v2.1.324,
ImprovementsSection of the release
Unclear The extra condition that decides when the variable is dropped is not known.
What
A background session is a Claude Code session that keeps running without a terminal open. When one is launched, it can inherit environment variables (named settings passed from the program that starts it), including ANTHROPIC_CONFIG_DIR.
For background sessions launched without a "profile:" selection, Claude Code used to keep an inherited ANTHROPIC_CONFIG_DIR when the session was woken, resumed from a fleet, or started from a roster. It now drops it in some of those cases, under an extra condition. Sessions launched with a profile behave as before.
Why
If you rely on ANTHROPIC_CONFIG_DIR reaching background sessions, some of them may no longer receive it.