Anthropic Product minor

Claude Code 2.1.331 brings Code Mode to third-party providers and adds an API check to claude doctor

Claude Code 2.1.331 supports Code Mode in terminal sessions on Bedrock, Google Cloud, Foundry and Claude Platform on AWS, adds an API connectivity check to claude doctor, and ships a large VS Code extension update.

What does this mean for me?

  • Engineering leadership

    Cost, risk, timeline, team impact Worth knowing

    Teams on Bedrock, Google Cloud, Foundry or Claude Platform on AWS can now use Code Mode in terminal sessions. Admins of managed plugin marketplaces should note the separate auto-update default change coming on or after November 30.

  • Engineer

    What to change, what breaks, what to test Worth knowing

    Upgrade to 2.1.331 for Code Mode on third-party providers and an API connectivity check in `claude doctor`. If a wrapper, hook or MCP server runs VS Code as Node, set `ELECTRON_RUN_AS_NODE=1` yourself now.

  • General consumer

    Using the Claude apps, not the API No impact

    Nothing to do — this is a Claude Code release and does not change the Claude apps.

Claude Code 2.1.331 adds Code Mode support in terminal sessions on Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry and Claude Platform on AWS. It also fixes several Code Mode problems: sessions resumed with --resume or --continue in another permission mode lost thinking and the prompt cache, the middle of long script output was dropped (Claude now gets a path to the full text), and --bare sessions were not told what scripts can call.

Other additions:

  • claude doctor gains an API connectivity section reporting whether the API can be reached, with the HTTP status or error.
  • CLAUDE_CODE_DISABLE_RESPONSE_COMPRESSION requests uncompressed model responses for proxies that cut compressed ones off; the changelog says it is not yet advised for self-hosted runners or Remote Control.
  • Claude apps gateway: oidc.groups_jsonpath reads groups using a subset of JSONPath, and CLAUDE_GATEWAY_IDP_CONNECT_BY_HOSTNAME=1 passes an IdP hostname to the proxy even with NO_PROXY set.
  • claude_code.llm_request trace spans gain gen_ai.usage.*, gen_ai.response.model and gen_ai.operation.name; gen_ai.usage.input_tokens includes prompt cache tokens.
  • Plugin manifests accept optionalDependencies.
  • A PermissionDenied hook’s retry: true now tells Claude to retry only a call you asked for.

The VS Code extension gets many fixes and new commands (Fix with Claude Code quick fix, Add Cell to Chat, Resolve Merge Conflicts). One fix has a consequence for tooling: a wrapper, hook or MCP server that runs VS Code as Node must now set ELECTRON_RUN_AS_NODE=1 itself. Saving a proposed diff now accepts it only after you click or type in its proposed side.

The changelog is undated. 2.1.331 was not in the copy fetched at about 21:00 UTC on November 23 and was in the copy fetched at about 21:00 UTC on November 24, so the date is inferred as November 24.

Topics: Coding tools

Sources

Confidence
high
Verification
Verified: stated on the vendor's own pages
Date precision
approximate
How this entry was made
Drafted by an agent, reviewed by a person