Claude Code 2.1.305: new setting lets commands get around the sandbox’s file protections
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.