> ## Content Index
> Fetch the complete content index at: https://orbiorbi.com/news/llms.txt
> Use this file to discover other available public pages before exploring further.

# Claude Code 2.1.306 修复云会话登录与报错
- URL: https://orbiorbi.com/news/hot/claude-code-2-1-306-release/
- Published: 2026-10-21T03:16:31.000Z
- Updated: 2026-10-21T23:00:24.000Z
- Description: 据 Anthropic 发布说明，Claude Code 2.1.306 修复云会话中未携带会话环境变量启动 claude -p 时误报未登录的问题，并修复大量 MCP 工具会话中的错误信息与压缩异常。
- Author: Orbis News
- Tags: #orbis-hot

据 Anthropic 发布说明，Claude Code 2.1.306 修复云会话中未携带会话环境变量启动 claude -p 时误报未登录的问题，并修复大量 MCP 工具会话中的错误信息与压缩异常。

- API 错误不再被替换为 prompt is too long，也修复了由此触发的不必要会话压缩。 [\[1\]](#hot-source-1)

## 来源与原文

- \[1\] Anthropic · 2026-10-21 · [查看原文](https://github.com/anthropics/claude-code/releases/tag/v2.1.306?ref=orbiorbi.com)  
新版本修复云会话登录误报及 MCP 会话报错问题。

{"version":2,"hot":{"event\_id":"claude-code-2-1-306-release","group":"open-source","count":1,"heat":20,"verified":"confirmed","firstSeen":"2026-10-21T03:16:31.000Z","lastSeen":"2026-10-21T23:00:06.171Z","sources":\[{"n":"Anthropic","publisher":"Anthropic","u":"https://github.com/anthropics/claude-code/releases/tag/v2.1.306","say":"新版本修复云会话登录误报及 MCP 会话报错问题。","tier":"T0","at":"2026-10-21T03:16:31.000Z"}\],"signals":\[\],"facts":\["API 错误不再被替换为 prompt is too long，也修复了由此触发的不必要会话压缩。"\]}}