←Story detail

Trending story

Claude Code fixes the not-logged-in error for claude -p in cloud sessions

1 reports1 story updatesUpdated Oct 21 11:16

Understand this story

AI overview

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 Released

Developments

1 confirmed developments

  1. 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

  1. 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.

Related stories

  1. Related storiesAnthropic releases Claude Opus 5.5
  2. Related storiesPodwise can be installed and used through the Plugins in ChatGPT and Claude
  3. Related storiesEnglish translation is being prepared.
  4. Related storiesAnthropic releases new SDK and ant CLI