# Claude Code 2.1.310 — Monitor tool comes to Bedrock, Vertex and Foundry

> Claude Code 2.1.310 brings the Monitor tool to cloud providers and fixes gateway and compaction failures.

- Org: Anthropic
- Date: 2026-10-23
- Category: tool
- Source: https://github.com/anthropics/claude-code/releases/tag/v2.1.310
- Canonical page: https://ai-tldr.dev/releases/anthropic-claude-code-2-1-310/

## In short

Claude Code 2.1.310 brings the Monitor tool and plugin monitors to Bedrock, Vertex and Foundry. It also retries requests that some gateways reject and fixes a compaction bug with dense text such as base64.

## What it is

The Monitor tool and plugin monitors now work in Claude Code 2.1.310 on Bedrock, Vertex and Foundry, and when telemetry or nonessential traffic is turned off. Long foreground sleeps are now blocked in those setups too, as they already were elsewhere.

## How it works

When a gateway or compatible server rejects the effort-2025-11-24 beta value or system messages in the middle of a conversation, Claude Code now retries the request without them. After a 'Prompt is too long' error, compaction no longer keeps too much dense text such as base64 or SVG, which could make the next request fail again.

## Why it matters

Teams that reach Claude through a cloud provider or a proxy get features and fixes that until now only worked on the direct API. The release also fixes a Windows case where PreToolUse and PermissionRequest hooks let a tool call through when Git Bash was missing, and adds Enterprise custom-role controls for cloud sessions and Remote Control.

## Who it's for

Claude Code users on Bedrock, Vertex, Foundry or behind a gateway

## Try it

npm i -g @anthropic-ai/claude-code@2.1.310

## Links

- [Release Notes](https://github.com/anthropics/claude-code/releases/tag/v2.1.310)
- [Repository](https://github.com/anthropics/claude-code)
