Skip to main content

Claude Code 2.1.306

By Steven Van ·

Version 2.1.306 fixes a false "Not logged in" error for claude -p in cloud sessions and a misleading "prompt is too long" error with many MCP tools.

Two bug fixes ship in Claude Code 2.1.306, as listed in the changelog.

  • Running claude -p inside a cloud session no longer reports "Not logged in" when it is started without the session's environment variables.
  • In sessions with many MCP tools, an API error is no longer replaced by a "prompt is too long" message, and an unneeded compaction no longer runs.

The changelog gives no further detail on either fix.

Claude Code
Claude Code
Anthropic's agentic coding tool — Claude in your terminal, IDE, desktop app and browser, reading and editing your codebase, running commands, opening pull requests and working on tasks in the cloud.
View Claude Code →

Original source

Read Claude Code 2.1.306 on Creators Toolbox