Follow Discord
Sweep 30 Oct 2026 · 21:36Z Build v2.1.315 533 read Stable v2.1.308 Latest v2.1.314 Next v2.1.315 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.315 ·

New environment variable passed on to programs Claude Code starts

Claude Code now passes a new variable, CLAUDE_CODE_SESSION_BEGAN_AS_COPY, on to the programs it starts

Use it now Notable No documentation found New Features
JSON All of v2.1.315
Use it nowTier: how much it should matter to you
4Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
SessionsArea: what it touches
New FeaturesKind: in v2.1.315,
What probably matters to youSection of the release

Unclear What this variable does, who sets it, and whether a user should ever set it is not stated.

What

Claude Code now knows a new environment variable (a named value handed from one program to the programs it starts), CLAUDE_CODE_SESSION_BEGAN_AS_COPY. It is passed on to the programs Claude Code starts, in the same lists as CLAUDE_CODE_SESSION_ORIGIN, which describes where a session came from.

Why

Programs started from Claude Code can now see this variable alongside the others that describe a session's origin.

Read from
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 doubtWhat this variable does, who sets it, and whether a user should ever set it is not stated.
The name it cites is new in this buildNew in this build: CLAUDE_CODE_SESSION_BEGAN_AS_COPY

See this entry in the whole of v2.1.315 →

Feedback