Release · Claude Code · Anthropic

Claude Code v2.1.306

What's new in Claude Code v2.1.306, released Oct 21, 2026 (). Newer: v2.1.310 (Oct 23, 2026)

Release notes

Claude Code 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