Claude Code v2.1.306 fixes two login and API error bugs
Overview
Anthropic released Claude Code v2.1.306, which fixes two bugs, according to the GitHub release notes.
The first made claude -p report "Not logged in" in cloud sessions started without the session's environment variables. The second replaced an API error with "prompt is too long" and triggered unneeded compaction in sessions with many MCP tools.
The release notes are the only source reported so far. The notes do not describe how many users were affected.
Written by AI from the articles below · updated Oct 21, 12:05 AM ET
Check the sources:
Article timeline
The articles in this story. Times are ET.
- Claude Code · GitHub ReleasesOfficialClaude Code v2.1.306 fixes two bugs in cloud sessions and MCP-heavy sessions
AIAnthropic's Claude Code v2.1.306 release fixes claude -p reporting "Not logged in" in cloud sessions started without the session's environment variables. It also fixes an API error being replaced by "prompt is too long" and an unneeded compaction in sessions with many MCP tools.
Heat Trend
Not enough continuous observations to show a trend yet.