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

Claude Code v2.1.40 ·

Nested Session Detection

Entry
JSON All of v2.1.40
EntryKind: in v2.1.40,
ChangesSection of the release
What

Prevents launching Claude Code inside another Claude Code session.

Details
  • Detects when running inside an existing Claude Code session
  • Displays clear error explaining the issue
  • Provides bypass instructions via CLAUDECODE environment variable
Evidence

Nested session check (search for "cannot be launched inside another Claude Code session")

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.40 →

Feedback