---
title: "Claude Code 2.1.305: new setting lets commands get around the sandbox’s file protections"
canonical: "https://aiaulis.com/en/juttu/claude-code-2-1-305-new-setting-lets-commands-get-around-the-sandbox-1d1c8d820df7/"
language: "en"
published: "2026-10-21T04:04:34.203400+00:00"
publisher: "AI Aulis"
label: "AI GENERATED"
---

# Claude Code 2.1.305: new setting lets commands get around the sandbox’s file protections

**AI GENERATED** · Written by AI

github.com, claudeupdates.dev · 2 sources · Sources published: 20 October 2026

Claude Code version 2.1.305 adds a Linux setting that lets sandboxed commands create user namespaces, for example for Chromium. The changelog says the same setting also lets those commands get around the sandbox’s file protections.

Anthropic released version 2.1.305 of its coding agent Claude Code on 20 October. The changelog, published on GitHub, lists a new Linux sandbox setting, `sandbox.allowNestedUserNamespaces`. In the same sentence, the changelog also spells out the cost: the setting lets commands get around the sandbox’s file protections.

A sandbox is an isolated environment that limits which files the agent’s commands can reach. A user namespace is a feature of the Linux kernel. It gives a process its own user IDs and lets it act as root inside its own isolated environment, even though it has no administrator rights on the machine. The new setting allows sandboxed commands to create such namespaces. The changelog gives two examples: the Chromium browser and rootless podman, which runs containers without root privileges. With the setting switched on, these programs work, but the sandbox’s file protection no longer restricts commands in the same way.

The release also fixes a bug introduced in version 2.1.304. It made every request fail on Google Vertex, Amazon Bedrock and other providers whenever the endpoint or a gateway in between rejected tool search. Tool search lets the model find the tools it needs from a large set, so the descriptions of every tool do not have to be loaded in advance. The same bug struck behind gateways when ToolSearch was disallowed or left out of the `--tools` option. Claude Code now retries the request without tool search.

Two changes affect organisations’ settings. An MCP server provides the agent with tools and data sources. The MCP server allowlist, `allowedMcpServers`, no longer filters stdio servers in the `managed-mcp.json` file that use `${VAR}` variables only in the `env` field. The changelog says such a server now loads after the upgrade, even if the allowlist left it out. To keep the server out, administrators can use the `deniedMcpServers` denylist. In addition, plugins that Claude Desktop mounts by path lose their `allowed-tools` settings if the organisation’s managed settings set `allowManagedPermissionRulesOnly`.

The delete confirmation for the `/artifacts` command has also changed: 1 or Enter keeps, 2 deletes and Esc cancels. The y and n keys no longer answer the prompt.

Among the other fixes, an MCP server passed by a cloud session or by the SDK’s `setMcpServers` is no longer replaced mid-session by a server of the same name from the user’s own settings. When a user resumes an interrupted Workflow run, Claude Code no longer re-runs `pipeline()` and `parallel()` agents that have already completed; it retrieves their results from the run’s journal.

Anthropic fixed two regressions in the self-hosted runner. Since version 2.1.296, repository access had failed when a git credential helper read its settings through the `GIT_CONFIG` variable. Since version 2.1.300, a startup script that shared only its standard output with the runner or orchestrator had crashed with the error Resource temporarily unavailable when `TERM` was set.

## What this is based on

1. [v2.1.305](https://github.com/anthropics/claude-code/releases/tag/v2.1.305)
   anthropics · Publisher: github.com · published 20 October 2026 at 23:46 (UTC+03:00) · retrieved 21 October 2026 at 04:55 (UTC+03:00) · discovery channel: GitHub
2. [Claude Code v2.1.305 Release Notes](https://www.claudeupdates.dev/version/2.1.305)
   Publisher: www.claudeupdates.dev · published 20 October 2026 at 23:46 (UTC+03:00) · retrieved 21 October 2026 at 05:25 (UTC+03:00) · discovery channel: web

Canonical: <https://aiaulis.com/en/juttu/claude-code-2-1-305-new-setting-lets-commands-get-around-the-sandbox-1d1c8d820df7/>

---

AI Aulis is a newspaper written and checked by artificial intelligence. No human reads the stories before publication, and AI can make mistakes: check important facts in the story's original sources. Publisher: Fiquan Holding Oy. Responsible editor: Jukka Haikala.
