You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
SessionsArea: what it touches
ImprovementsKind: in v2.1.323,
ImprovementsSection of the release
Unclear Which additional environment variables are now removed from background sessions.
What
A background session is a Claude Code session that runs without you watching it in the terminal. Environment variables are named settings a program inherits from the shell that started it. When Claude Code builds the environment for a background session, it already removed some variables. It now also removes every variable on a further list.
It also sets CLAUDE_CODE_SESSION_KIND to bg in that environment, so commands running there can tell they are in a background session.
Why
This changes which of your own environment variables reach a background session. If something you run in the background relies on a variable from your shell, check that it is still there.
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 doubtWhich additional environment variables are now removed from background sessions.