Understand this story
Claude Code fixed an issue in cloud sessions where claude -p incorrectly reported "Not logged in" when the session environment variables were not loaded. The fix was released with Claude Code v2.1.306, and the related notes were provided by Claude Code's GitHub Releases on October 21, 2026. The same version also fixed another issue: when there were many MCP tools, API errors in the session were replaced with "prompt is too long," triggering unnecessary compaction. There are currently no subsequent developments; the status is based on the release notes for that version.
AI-generated from public reports
Latest development · Report
Claude Code v2.1.306 ReleasedDevelopments
1 confirmed developments
Claude Code fixes the "not logged in" error for claude -p in cloud sessions
Source:Claude Code:GitHub Releases
Reports and discussion timeline
Browse reports and discussion by time. Their evidence levels remain distinct.
Oct 21
Claude Code:GitHub ReleasesFirst-party
Claude Code v2.1.306 Released
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.