Claude Code fixes the not-logged-in error for claude -p in cloud sessions
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.
ported "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.
Matched fieldsSummary