Claude Code 2.1.299-2.1.300 add idle compaction and OpenTelemetry GenAI attributes, and validate hook input
Claude Code 2.1.299 and 2.1.300 add idle compaction before the one-hour prompt cache expires, GenAI semantic-convention attributes on OpenTelemetry spans, /advisor on Claude Platform on AWS and Slack Connect for Claude Tag, and now validate hook-rewritten tool input.
What does this mean for me?
Engineering leadership
Cost, risk, timeline, team impact Worth knowingRoutine Claude Code releases. Idle compaction should cut the cost of resuming long conversations after a break, and teams that rely on hooks rewriting tool input should confirm those hooks still pass validation.
Engineer
What to change, what breaks, what to test Worth knowingUpdate to 2.1.300 and test any PreToolUse or PermissionRequest hook that returns updatedInput: unknown keys are now dropped and rejected input denies the call. Drop --sandbox/--no-sandbox from claude remote-control scripts, which now exit with an error.
General consumer
Using the Claude apps, not the API No impactNothing to do — this is a Claude Code release and does not change the Claude apps.
Claude Code 2.1.299 adds idle compaction in the terminal: a conversation of 200K tokens or more left idle for about 54 minutes is compacted before its one-hour prompt cache expires, so the next message does not reprocess the whole context. CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS changes the threshold and "idleCompaction": false turns it off. It also adds CLAUDE_CODE_DISABLE_FILE_MENTIONS (Claude gets the paths of @ mentions rather than their contents), /effort and /fast defaults in agent view, /usage warnings for max effort, workflows and large tool results, and --disallow-tools for claude plugin eval. UserPromptSubmit hooks now run before a skill or custom slash command expands, so a hook that blocks the prompt also stops its embedded shell commands.
Claude Code 2.1.300 adds OpenTelemetry GenAI semantic-convention attributes to trace spans and splits cache writes by lifetime (cache_creation_5m_tokens, cache_creation_1h_tokens) in the api_request event; adds /advisor on Claude Platform on AWS, off until an advisor model is chosen; and, for Claude Tag, Slack Connect channel support (off by default), an in-thread approval card for connector actions, and Slack voice clips.
Behaviour changes to check: updatedInput returned by PreToolUse and PermissionRequest hooks is now validated like Claude’s own input, so unknown keys are dropped and input the tool rejects denies the call; --sandbox and --no-sandbox on claude remote-control, which had no effect, now exit with an error (set sandbox.enabled instead); large requests to api.anthropic.com are gzip-compressed even with telemetry off (CLAUDE_CODE_GZIP_REQUEST_BODIES=0 disables it); and local transcripts now also record each request’s system prompt, tools and parameters. The rest is bug fixes.
The changelog carries no release dates, and the GitHub release pages were not readable from this run. This entry is dated October 14, 2026 because both versions appeared between the previous day’s fetch and this run’s; 2.1.297 and 2.1.298 do not appear in the changelog.
Topics: Coding tools
Terms on this page: Prompt caching