Follow Discord
Sweep 10 Nov 2026 · 02:18Z Build v2.1.322 539 read Stable v2.1.311 Latest v2.1.322 Next v2.1.322 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.321 ·

New environment variable for user-delegated sessions with its own failure type

Setting CLAUDE_CODE_USER_DELEGATED_SESSION_DIRECT_API gives remote sessions a separate failure type when their route is refused

Use it now No documentation found New Features
JSON All of v2.1.321
Use it nowTier: how much it should matter to you
4Useful: my rating, 1 to 5
4Signal: worth watching, 1 to 5
Delegated SessionsArea: what it touches
New FeaturesKind: in v2.1.321,
What probably matters to youSection of the release
What

Claude Code now reads a new environment variable, CLAUDE_CODE_USER_DELEGATED_SESSION_DIRECT_API. An environment variable is a named value set outside Claude Code that changes how it behaves.

When it is set in a session's environment variables:

  • If the session's process exits with code 1 and its error output matches a known pattern, Claude Code records that the user-delegated session route was refused, and reports it as a session configuration error.
  • If the result is unavailable or the conversation is too long, the session is treated as blocked.
Why

This is a new mode for remote sessions with its own way of reporting failures. Only setups that set this variable see it.

Read from
How sure we are
One source agreesOne thing we can check says the same as this entry.
The name it cites is new in this buildNew in this build: CLAUDE_CODE_USER_DELEGATED_SESSION_DIRECT_API

See this entry in the whole of v2.1.321 →

Feedback