Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.336 ·

Nested Claude Code sessions no longer inherit plugin and process variables

Claude Code now removes CLAUDE_PID, CLAUDE_PLUGIN_ROOT and CLAUDE_PLUGIN_DATA from the environment it hands to child sessions

You'll notice Improvements
JSON All of v2.1.336
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
Environment VariablesArea: what it touches
ImprovementsKind: in v2.1.336,
ImprovementsSection of the release
What

Environment variables are named values a program passes on to the programs it starts. When Claude Code prepares the environment for a child Claude Code session started from inside another, it already removes variables such as CLAUDE_CODE_CHILD_SESSION. It now also removes:

  • CLAUDE_PID
  • CLAUDE_PLUGIN_ROOT
  • CLAUDE_PLUGIN_DATA

A child session started this way no longer inherits them.

Why

Values meant for one plugin or hook stop leaking into a separate Claude Code session started inside it. A plugin is an add-on, and a hook is a command Claude Code runs at set moments.

Read from
Names in the bundleCLAUDE_CODE_CHILD_SESSION
What the documentation says

See this entry in the whole of v2.1.336 →

Feedback