Follow Discord
Sweep 12 Nov 2026 · 23:00Z Build v2.1.323 540 read Stable v2.1.311 Latest v2.1.323 Next v2.1.323 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.323 ·

Background sessions start with more environment variables removed

Background sessions now drop an extra list of environment variables they would otherwise inherit, and get CLAUDE_CODE_SESSION_KIND set to bg

You'll notice Improvements
JSON All of v2.1.323
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.

See this entry in the whole of v2.1.323 →

Feedback