usage

Claude Code 2.1.305

Tools and page contents
On this page

New 8

01

New sandbox.allowNestedUserNamespaces lets Chromium run inside the Linux sandbox

On Linux, asking Claude to launch Chromium for web tests or start containers with rootless podman often got stuck inside the sandbox (the protection that runs commands in an isolated area). Both programs need to create their own user namespaces (a Linux feature that gives a program its own separate identity). You can now allow it by adding {"sandbox": {"allowNestedUserNamespaces": true}} to settings.json. ⟦Handing the patient the key to the isolation ward means the tests that were blocked behind a locked door can finally run, but the patient can also walk out on their own.⟧ The changelog is explicit: once on, these commands can get around the sandbox's file protections, so turn it on only when you need it.

Original changelog

Added sandbox.allowNestedUserNamespaces so sandboxed commands on Linux can create user namespaces (Chromium, rootless podman); this lets them get around the sandbox's file protections

02

New CLAUDE_CODE_RETRY_WATCHDOG_USAGE_LIMIT_RECHECK_MS catches usage limits lifted early

Before bed you turn on unattended retry mode, CLAUDE_CODE_RETRY_WATCHDOG, so Claude can grind through a long task overnight; when it hits a usage limit, it waits all the way to the reset time. But limits are sometimes lifted before the reset, and it never noticed, wasting hours. The new environment variable CLAUDE_CODE_RETRY_WATCHDOG_USAGE_LIMIT_RECHECK_MS makes it recheck the limit while waiting; the MS at the end means the unit is milliseconds. Set it in the terminal before starting with export CLAUDE_CODE_RETRY_WATCHDOG_USAGE_LIMIT_RECHECK_MS=600000, where 600000 milliseconds is 10 minutes. ⟦Waiting for a restaurant table, you used to come back only at the time the host quoted; now you poke your head in every so often and sit down as soon as a table frees up.⟧

Original changelog

Added CLAUDE_CODE_RETRY_WATCHDOG_USAGE_LIMIT_RECHECK_MS so unattended retry mode (CLAUDE_CODE_RETRY_WATCHDOG) notices a usage limit that was lifted before its reset

03

/usage warnings come with one-line fixes you apply with f

When you type /usage to check your usage, a few warnings often show up underneath, and you used to have to work out which setting caused each one and how to fix it. Now each warning is a one-line fix that names its source; press f and the fixes are applied. ⟦A dashboard that used to light up one cryptic lamp now prints "front-left tire low, tap here to book air" right beside it.⟧ The same fixes also appear in VS Code and /doctor, so you can fix them wherever you spot them.

Original changelog

Improved /usage: each warning is now a one-line fix that names its source, and f applies the fixes; the same fixes appear in VS Code and /doctor

04

allowedMcpServers stops filtering some managed MCP servers, and Desktop-mounted plugins lose their tool grants

If your company's IT manages Claude Code through managed settings (rules pushed by the organization that employees cannot change), two behaviors change. In managed-mcp.json, stdio MCP servers that use ${VAR} only in env are no longer filtered by the allowedMcpServers allowlist, so one your allowlist left out now loads after upgrading. To keep it off, add it to deniedMcpServers. The other change covers plugins Claude Desktop mounts by path: when your organization sets allowManagedPermissionRulesOnly, they no longer keep their own allowed-tools. ⟦A building changed its access rules: one kind of visitor missing from the guest list used to be turned away and now walks right in unless put on a blocklist, while a contractor's own pass stops counting once the building accepts only badges from the management office.⟧

Original changelog

Changed allowedMcpServers to stop filtering managed-mcp.json stdio servers that use ${VAR} only in env: one your allowlist left out now loads on upgrade; use deniedMcpServers to keep it off

Changed plugins that Claude Desktop mounts by path to no longer keep their allowed-tools when your organization's managed settings set allowManagedPermissionRulesOnly

05

Screen readers stop calling the search box a telephone recorder, and /artifacts delete uses number keys

If you use a screen reader (assistive software that reads the screen aloud), you may have heard some baffling announcements. Search boxes used to show a symbol that VoiceOver read as "telephone recorder"; they now say "Search:". Highlighted prompt text, such as Ctrl+R search matches and "ultrathink", no longer has spaces inside words. MCP consent dialogs were adjusted too, so an Enter meant to send your prompt is less likely to be taken as Accept. The /artifacts delete confirmation now takes 1 or Enter to keep, 2 to delete and Esc to cancel; y and n no longer answer it.

Original changelog

Fixed screen reader mode: search boxes now say "Search:" instead of a symbol VoiceOver read as "telephone recorder", and highlighted prompt text, such as Ctrl+R search matches and "ultrathink", no longer has spaces inside words

Improved MCP consent dialogs so an Enter meant for the prompt is less likely to be taken as Accept

Changed the /artifacts delete confirmation to take 1 or Enter to keep, 2 to delete, and Esc to cancel; y and n no longer answer it

06

A mod's image draws in iTerm2, and docked panes stay within 45% width

If you write mods (extensions that add to Claude Code's interface), two changes affect you. In iTerm2 3.5 and later with fullscreen rendering, a mod's Image used to show only its alt text; it now draws the picture. A mod's docked pane now stays within 45% of the terminal's width, even when the width was kept from a wider terminal. ⟦A desk lamp whose base could hog half the desk, and kept that size when moved to a smaller desk, now takes up a bit over four-tenths at most, leaving the rest for your writing.⟧

Original changelog

Improved a mod's Image to draw its picture in iTerm2 3.5 and later with fullscreen rendering, where it showed only its alt text

Changed a mod's docked pane to stay within 45% of the terminal's width, including a width kept from a wider terminal

07

VS Code shows when start-up hooks run, and timeout messages point to logs first

If you use Claude Code in VS Code with start-up hooks (small programs triggered automatically at certain moments), opening a new session used to just look frozen. Now, while SessionStart or Setup hooks run, the spinner shows "Running start-up hooks", and screen readers announce it. When your spinnerVerbs setting swaps the built-in verbs for short ones, "Compacting..." used to get cut off; it now shows in full. When a session does not start in time and no hook is running, the message used to send you to sign-in and network first; it now leads with the output logs and lists possible causes.

Original changelog

[VSCode] Added a "Running start-up hooks" spinner status, with a screen reader announcement, while SessionStart or Setup hooks run

[VSCode] Fixed the spinner cutting off "Compacting..." when your spinnerVerbs setting replaces the built-in verbs with short ones

[VSCode] Changed the message shown when a session does not start in time and no hook is running: it now leads with the output logs and lists causes instead of pointing to sign-in and network first

08

Claude Tag routines in Slack stop pretending they posted

If you set up routines with Claude Tag (the integration that lets you call Claude inside Slack), the worst case is thinking a post went out when it did not. A routine set up in a Slack DM thread used to stop posting once another routine in that thread restarted the conversation; now both keep posting. Routines set up in a Slack thread used to report success without posting after the conversation ended; those runs are now skipped and the creator is told. Admins get three changes: the Add place search now finds public channels Claude has not joined so you can set one up from there, a repository that moved to another GitHub account can be added to access bundles again, and in large organizations plugin, skill and bundle edits work while the channel list is still loading.

Original changelog

[Claude Tag] Added public Slack channels Claude hasn't joined to the Claude Tag admin Add place search, so admins can set one up from there

[Claude Tag] Fixed Claude Tag access bundles so a repository that moved to another GitHub account can be added again

[Claude Tag] Fixed a routine set up in a Slack DM thread no longer posting after another routine in that thread restarted the conversation; both now keep posting there

[Claude Tag] Fixed routines set up in a Slack thread reporting success without posting after the conversation ended; those runs are now skipped and the creator is told

[Claude Tag] Improved Claude Tag admin pages in large organizations so plugin, skill and bundle edits work while the channel list is still loading

Fixed 6

09

Requests no longer all fail when an endpoint or gateway rejects tool search

After upgrading to 2.1.304, anyone using Claude Code through a cloud provider or a company gateway (a relay that forwards AI requests) may have seen every single request fail. The endpoints of providers such as Vertex and Bedrock, or a gateway, rejected tool search (the feature that lets Claude look up and load tools only when needed); the same happened behind gateways that disallowed ToolSearch or left it out of --tools. This was a 2.1.304 regression, and Claude Code now retries without it.

Original changelog

Fixed every request failing on Vertex, Bedrock and other providers when the endpoint or a gateway rejects tool search, and behind gateways with ToolSearch disallowed or left out of --tools (a 2.1.304 regression): Claude Code now retries without it

10

/effort applies despite model-name case differences, and full-disk errors speak plainly

This release clears out several small annoyances you hit right in the terminal. When a model name differed from a modelOverrides value only by letter case or a [1m] tag, /effort and /autocompact settings did not apply; now they do. Running a Bash command on a full disk used to fail with nothing but a raw ENOSPC file path; the error now says the disk is full and that nothing ran. In narrow terminals, /usage rows are no longer cut off. Startup warnings used to print as raw text above the logo; they now go to the debug log, and permission rules that restrict nothing show as warning rows under the banner.

Original changelog

Fixed /effort and /autocompact settings not applying when the model name differed from a modelOverrides value by letter case or a [1m] tag

Fixed Bash commands on a full disk failing with a raw ENOSPC file path: the error now says the disk is full and that nothing ran

Fixed /usage rows being cut off in narrow terminals

Fixed startup warnings printing as raw text above the logo: they now go to the debug log, and permission rules that restrict nothing show as warning rows under the banner

11

Claude names the right model after a subagent switches to a fallback

If you have Claude hand work to subagents (helpers that split off tasks from the main conversation), you may have seen a few oddities. After a subagent switched to a fallback model, Claude used to name the wrong model for its work; now it names the right one. New worktrees in a bare repository (a Git repository with history but no working files) sometimes started from local HEAD instead of the default branch, and unchanged subagent worktrees were sometimes not cleaned up. In scheduled Cowork cloud sessions, each subagent whose WebFetch needed a URL approval nobody was there to give used to wait five minutes; this release fixes more of those cases. When a Workflow resumes, already-completed pipeline() and parallel() agents no longer rerun and are served from the run's journal instead.

Original changelog

Fixed new worktrees in a bare repository sometimes starting from local HEAD instead of the default branch, and unchanged subagent worktrees sometimes not being cleaned up

Fixed Claude naming the wrong model for a subagent's work after the subagent switched to a fallback model

Fixed more cases of scheduled Cowork cloud sessions waiting five minutes for each subagent whose WebFetch needed a URL approval that nobody was there to give

Fixed Workflow resume re-running already-completed pipeline() and parallel() agents instead of serving them from the run's journal

12

MCP servers in cloud sessions are no longer replaced by same-named settings

A setting that gets swapped out halfway through is one of the hardest things to track down in a cloud session. An MCP server passed in by a cloud session or by the SDK's setMcpServers used to be replaced later in the session by a same-named server from your own settings; it no longer is. When a compaction (condensing older conversation into a summary) had to leave the oldest messages out to fit, cloud sessions and teammates did not tell Claude; now they do. After switching conversations with /resume under Remote Control, the /resume list no longer keeps empty "(session)" entries. Remote Control's spawn-mode messages are clearer too: pressing w says the new mode is saved for the folder, and a later claude remote-control start that uses the saved mode says where it came from.

Original changelog

Fixed an MCP server passed by a cloud session or by the SDK's setMcpServers being replaced later in the session by a same-named server from your own settings

Fixed cloud sessions and teammates not telling Claude when a compaction had to leave the oldest messages out of its summary to fit

Fixed Remote Control leaving empty "(session)" entries in /resume after switching conversations with /resume

Remote Control: Improved the spawn-mode messages: pressing w now says the new mode is saved for the folder, and a later claude remote-control start that uses the saved mode says where it came from

13

Three self-hosted runner snags fixed, and deleting a self-hosted environment explains the impact

Teams running a self-hosted runner (the executor that actually carries out tasks for cloud sessions on your own machine) get three snags fixed. A start script that shares only its stdout with the runner or orchestrator used to fail with Resource temporarily unavailable when TERM was set, a 2.1.300 regression. Since 2.1.296, repository access failed when a git credential helper or askpass program read its settings through GIT_CONFIG; that works again. When a runner the orchestrator started in the background kept its output open, the orchestrator used to report the spawn-runner hook as timed out. Two admin pages were fixed as well: the Cloud environments page no longer refuses to save an existing environment with an "installs packages" error, and deleting a self-hosted environment now says what blocks the delete and what it will affect.

Original changelog

Self-hosted runner: Fixed a start script that shares only its stdout with the runner or orchestrator failing with Resource temporarily unavailable when TERM is set (a 2.1.300 regression)

Self-hosted runner: Fixed repository access failing since 2.1.296 when a git credential helper or askpass program reads its settings through GIT_CONFIG

Self-hosted runner: Fixed the orchestrator reporting a spawn-runner hook as timed out when a runner it started in the background kept its output open

[Cloud sessions] Fixed the Cloud environments admin page wrongly refusing to save an existing environment with an "installs packages" error

[Cloud sessions] Improved deleting a self-hosted environment so the dialog and error messages say what blocks the delete and what it will affect

14

Code Review reviews the newest commit and skips LGTM while blockers remain

If Claude reviews your pull requests (proposals to merge your changes) on GitHub, you may have pushed several new changes while a review was still running. Code Review then sometimes skipped the newest commit; now it reviews it. On a re-review, it also no longer opens with LGTM (looks good to me) while earlier blocking findings are still open. ⟦Handing a teacher new drafts of your essay mid-grading used to mean they might mark an old one and write "great job" before the typos were fixed; now they grade the latest draft and hold the praise until the fixes are in.⟧

Original changelog

[Code Review] Fixed Code Review sometimes not reviewing the newest commit when several pushes landed on a pull request during a review

[Code Review] Changed Code Review re-reviews so they no longer open with LGTM while earlier blocking findings are still open