API changeVerified

v2.1.306

## What's changed - Fixed `claude -p` inside cloud sessions reporting "Not logged in" when started without the session's environment variables - Fixed an API error being replaced by "prompt is too long", and an unneeded compaction, in sessions with many MCP tools

Action requiredReview model IDs, endpoints, and client configuration before the change reaches production.

Evidence chain

Anthropic Claude Code GitHub releasesFirst-party repository · official

## What's changed - Fixed `claude -p` inside cloud sessions reporting "Not logged in" when started without the session's environment variables - Fixed an API error being replaced by "prompt is too long", and an unneeded compaction, in sessions with many MCP tools

Open original source

External discussion

No reviewed external discussion has been linked yet. This does not change the evidence confidence.