返回全部动态
Claude Code 2.1.306 修复云会话登录与错误提示问题
原标题:2.1.306
AI 摘要
Claude Code 发布 2.1.306 版本更新,修复了两个问题:在云会话中未携带会话环境变量启动时,`claude -p` 会误报“Not logged in”;在包含大量 MCP 工具的会话中,API 错误会被替换为“prompt is too long”,并触发不必要的上下文压缩。此次更新提升了云会话登录状态判断和错误提示的准确性,并避免多余的压缩操作。
以上摘要由 AI 生成,可能存在误差。事实请以原文为准。
正文节选
- Fixed `claude -p` inside cloud sessions reporting "Not logged in" when started without the session's environment variables - Fixed an API error being replaced by "prompt is too long", and an unneeded compaction, in sessions with many MCP tools
发布时间:—
抓取时间:2026-10-21 11:30
来源机构:Anthropic