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 knowingTeams 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 knowingUpgrade 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 impactNothing 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 doctorgains an API connectivity section reporting whether the API can be reached, with the HTTP status or error.CLAUDE_CODE_DISABLE_RESPONSE_COMPRESSIONrequests 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_jsonpathreads groups using a subset of JSONPath, andCLAUDE_GATEWAY_IDP_CONNECT_BY_HOSTNAME=1passes an IdP hostname to the proxy even withNO_PROXYset. claude_code.llm_requesttrace spans gaingen_ai.usage.*,gen_ai.response.modelandgen_ai.operation.name;gen_ai.usage.input_tokensincludes prompt cache tokens.- Plugin manifests accept
optionalDependencies. - A
PermissionDeniedhook’sretry: truenow 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