Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.271 ·

Subprocess calls now run with an isolated environment via extendEnv

gh CLI and other subprocess calls now run with an explicit environment instead of inheriting the full parent process environment

Group of 3 You'll notice Internal Changes
JSON All of v2.1.271
You'll noticeTier: how much it should matter to you
1Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
GitArea: what it touches
Internal ChangesKind: in v2.1.271,
ImprovementsSection of the release

What

  • Calls to the gh CLI (for GH_TOKEN lookup and repo content fetches, and for gh repo list during auto-mode sibling-repo lookups) now build their environment from an explicit snapshot with extendEnv: false, instead of spreading the entire process.env into the subprocess.
  • An extendEnv option was plumbed more generally into the shared exec-options builder and into other spawn call sites.

Why

This stops gh and other spawned subprocesses from inheriting the parent process's full environment, reducing the chance of leaking unrelated environment variables into these subprocess calls.

See this entry in the whole of v2.1.271 →

Feedback