Claude Code 2.1.331: Code Mode on Cloud Platform Terminals, VS Code "Fix with Claude Code," and Changes to Diff and Permission Handling
Anthropic's Claude Code changelog lists 2.1.331: terminal sessions on Amazon Bedrock and other cloud platforms support Code Mode, claude doctor gains an API connectivity check, and VS Code extension and Windows managed-settings behavior change.
News date: About 5 min read
Contents
Anthropic listed version 2.1.331 in the Claude Code changelog on November 23, 2026. The changelog does not mention a staged rollout, preview or waitlist; it simply lists items under "Added" and "Changed." For developers who use Claude Code through cloud platforms, an enterprise sign-in gateway or the VS Code extension, some default behaviors and key responses have changed, so it is worth reviewing them before upgrading.
What's new in 2.1.331?
- Anthropic says terminal sessions on Amazon Bedrock, Google Cloud's Agent Platform, Microsoft Foundry and Claude Platform on AWS now support Code Mode.
- The diagnostic command claude doctor gains an API connectivity section that reports whether the API is reachable, with the HTTP status or error, or explains why no test was run.
- Tap-mode voice dictation now shows a notice if it stops by itself after 15 seconds without recognized speech or at its 2-minute limit.
- The plugin manifest adds optionalDependencies. Plugins listed there are installed along with the plugin that lists them, and can later be disabled or uninstalled on their own.
- In tracing data, the claude_code.llm_request span, which represents one model request, gains the fields gen_ai.usage.*, gen_ai.response.model and gen_ai.operation.name. gen_ai.usage.input_tokens includes prompt cache tokens.
What settings change for enterprise and proxy environments?
Anthropic's changelog says the Claude apps gateway adds an oidc.groups_jsonpath setting. OIDC is a single sign-on protocol common in enterprises, and this setting uses a small subset of JSONPath (RFC 9535) to read user groups from matching entries in a list of objects. Another addition is CLAUDE_GATEWAY_IDP_CONNECT_BY_HOSTNAME=1. An IdP is the login service that verifies identity; combined with oidc.use_proxy: true, sign-in requests still hand the https IdP's hostname to the proxy even when NO_PROXY is set. If a company proxy cuts off compressed model responses, CLAUDE_CODE_DISABLE_RESPONSE_COMPRESSION can be used to request uncompressed responses instead. However, the changelog says it is not yet advised for self-hosted runners or Remote Control.
How does the VS Code extension workflow differ?
- Adds "Fix with Claude Code." It appears as a quick fix for errors and warnings, and on failed tests in the test peek and the Test Results view, and puts the problem straight into the chat box.
- Adds "Add Cell to Chat" to the notebook cell menu, which attaches a cell along with its outputs or error. The right-click menu for changed files in Source Control gains "Add to Chat," and files with merge conflicts gain "Resolve Merge Conflicts."
- A notice now appears before sending a very large selection or a very large attached text file. When "Prompt is too long" occurs, the advice names the large part and what to do next.
- On logout, if the request to revoke the claude.ai login is not confirmed, a warning and a link to the revoke page are shown.
Which behavior changes could affect existing habits?
| Item | Change in 2.1.331 |
|---|---|
| Confirmation prompts for /ide stopping auto-connect, and for /clear, /compact and /rewind in a subagent's view | Yes is now listed first, but the default still stays on No; pressing Down then Enter now answers No |
| retry: true in a PermissionDenied hook | Now tells Claude to make the refused call again only if it had asked for that call |
| VS Code proposed diffs (before/after comparison) | Saving counts as acceptance only after you click or type in the proposed (right) side; a notification appears if a save is refused or if closing with Save applies nothing |
| Diffs opened from a terminal session in VS Code | They open without moving keyboard focus, and beside a file that has unsaved changes; to answer, click Accept or use the terminal |
| When allowManagedPermissionRulesOnly is set | Permission cards that would offer an allow rule now show only Yes and No; pressing 2 on those cards now answers No |
| Find box in a Claude tab losing keyboard focus | Enter is ignored and a notice is shown |
| Managed extraKnownMarketplaces | A future version on or after November 30, 2026 will auto-update them by default |
Frequently asked questions
Is 2.1.331 a preview release?
The changelog does not label it as a preview, beta or waitlist; it only lists additions and changes. Check Anthropic's official documentation for actual availability.
Does the plugin marketplace auto-update take effect in this version?
No. The changelog says it takes effect in a future version on or after November 30, 2026: marketplaces in managed extraKnownMarketplaces will auto-update by default. To opt a marketplace out, set "autoUpdate": false on its entry.
What can I do if a company proxy cuts off responses?
You can consider setting CLAUDE_CODE_DISABLE_RESPONSE_COMPRESSION to request uncompressed model responses. Anthropic says it is not yet advised for self-hosted runners or Remote Control. To check whether the API is reachable, run claude doctor and look at the new API connectivity section.
Found this guide helpful? Share it with someone who needs it
Amazon Bedrock Trusted Access API Now GA: Anthropic's EFS and EDC Data Retention Options in Public Preview
AWS announced the general availability of the Amazon Bedrock Trusted Access Program API, plus public previews of Anthropic's Enterprise Frontier Safeguards and Enterprise Data Controls, letting eligible enterprises control where Claude model data is retained and how it is reviewed.
Z.ai Launches GLM-5.4: A 750B-Parameter Looped Model, Coding Plan Subscribers Only for Now, From $18 a Month
Supertake Raises $20M Seed Round: AI Agents Turn Market Views into Stock Portfolios, Now in Waitlist Beta
COP31 Ends Without a Deal: About 80 Countries Sign a Voluntary Electrification Pledge as AI Data Center Power Use Takes Center Stage
Sources
- 2.1.331Checked:
Compiled from the references and verification dates listed above; fares, schedules, product features, and terms can change, so please confirm the latest details on the relevant official website before travelling, booking, or purchasing.