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.
Names in the bundleCLAUDE_CODE_SESSION_BEGAN_AS_COPYCLAUDE_CODE_SESSION_ORIGIN
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubt
What 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 build
New in this build: CLAUDE_CODE_SESSION_BEGAN_AS_COPY