速報 12:55
MCPのツールを多く入れたセッションで、突然「prompt is too long」と出ていませんか。
文脈が長すぎたのではなく、別のAPIエラーがこの表示に化けていた不具合でした。
Claude Code 2.1.306で、この表示と不要な圧縮の両方が修正されています。
心当たりのある人は、今日のうちに最新版へ更新してください。
出典の原文(引用)
Release v2.1.306 — What's changed: 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— github.com
