Claude Code v2.1.306 Released
AI summary
Claude Code v2.1.306 fixes an issue in cloud sessions where `claude -p` incorrectly reported "Not logged in" when session environment variables were not loaded. This version also fixes an issue where, when there were many MCP tools, API errors in the session were replaced with "prompt is too long" and triggered unnecessary compaction.
Body
## 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