Sweep 19 Sep 2026 · 02:36Z Build v2.1.278 500 read Stable v2.1.267 Latest v2.1.278 Next v2.1.278 Feeds RSS JSON llms.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

TierYou'll noticehow much it should matter to you
Useful1my rating, 1 to 5
Signal1worth watching, 1 to 5
AreaElsewherewhat it touches
KindImprovementsin v2.1.271,
Group of 3 You'll notice

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

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 →