Claude Code 2.1.337 Asks for Manual Approval When Auto Mode Can't Assess Many Actions
The article's text, from Joho no Todai's page.
On December 5, Anthropic released Claude Code 2.1.337, an update to its AI coding agent. It fixes a problem in Visual Studio Code (VS Code), the desktop app's Code tab, and background agents where Auto Mode refused actions if it couldn't run the safety check. Claude now asks the user for approval for many of those actions.
In Claude Code's manual mode, the user is asked to approve many actions, including file edits and command execution. According to Anthropic's documentation on permission modes, Auto Mode uses a separate AI model called a classifier to review actions on the user's behalf.
The classifier checks whether an action goes beyond the user's request, targets an unfamiliar system such as an unrecognized server, or follows malicious instructions Claude encountered. It blocks actions it considers risky.
Starting with Claude Code 2.1.283, Auto Mode is the built-in default for new sessions in an interactive terminal or in VS Code. If Auto Mode is selected but unavailable because of factors such as the model or organization settings, the session starts in manual mode.
Delegating approvals to an AI agent cuts down on interruptions. Users can benefit from automatic approval and still need a chance to decide for themselves when the classifier can't return a verdict.
Retrying used up quotas without moving work forward
As early as April 17, a user reported more than 30 minutes of failed file edits, writes, and Bash commands in Auto Mode. Reading files and similar operations still worked, the user said. They proposed switching to per-action approval when the classifier was unavailable.
On September 28, a Claude Code desktop user reported that even simple commands such as echo ok, which prints a string, and pwd, which shows the working directory, failed to run. An error said the server-side classifier couldn't return a verdict. Retrying with the same commands and environment worked, the user said.
In that user's setup, Claude Code also refused to run ScheduleWakeup, which schedules follow-up work. The user said Claude couldn't schedule a retry for when the classifier recovered and had to wait for another message.
A user running Claude Code 2.1.283 on macOS also reported that searches and agent calls were refused. They said switching from Auto Mode to manual mode helped. Users on Windows, Windows Subsystem for Linux (WSL), and Debian 13 reported similar problems.
Another user who reported blocked writes on September 28 said Claude used up tokens retrying them. On September 30, a user of the VS Code extension reported five consecutive refusals involving Bash and Agent, which starts an agent. Reads still worked. The user noted that retrying failed actions ate into their usage allowance and asked for a manual approval option.
On October 17, a Windows 11 user reported that file writes began failing after an upgrade from Claude Code 2.1.292 to 2.1.301. In logs from their 50 most recent sessions, they found 27 refusals indicating that Auto Mode was unavailable. Going back to 2.1.292 helped, they said.
Running an action without a safety check carries risk. Repeatedly retrying until a verdict comes back can cost users time and quota without moving the work forward. When users can inspect the proposed action, giving them the opportunity to make some of those decisions themselves is valuable.
Where the safety check stopped
Anthropic's permission mode documentation says the server may fail to return a verdict when the safety check times out or an intermediary such as a gateway interrupts or rewrites the response.
A classifier can refuse an action after finding a risk, or the review process can fail before producing a verdict. In the latter case, repeatedly changing the proposed action may do nothing to address the underlying problem.
Version 2.1.337 also improves Auto Mode with external gateways, cloud platforms, and self-hosted runtimes. When a safety check is refused or may have been blocked by an external network path, Claude's response or error now explains what went wrong and who can address it.
The official permission mode documentation says an action is refused when the server-side classifier returns no verdict, and processing can stop after 10 consecutive responses without one. The changelog says manual approval applies to many actions, so some refusals may still occur when Auto Mode can't make a decision.
Users need to know whether Claude judged an action risky or whether the network or service that makes the decision failed. With that information, they can decide whether to rewrite their request or ask an administrator to investigate.
Non-interactive runs return an error
For non-interactive runs using claude -p or the Claude Agent SDK, a toolkit for calling the agent from another program, the exit behavior changes when Auto Mode can't complete a safety check. Claude Code sets is_error to true in the result and ends the run with exit code 1.
When a user is available to respond, Claude can show the proposed action and ask for approval. In automation, the caller needs a way to detect that the safety check didn't complete.
If the safety check stops working partway through a batch of file edits, the caller can catch the failure, inspect the changes already made, and decide whether to retry or stop downstream work. Exit code 1 signals failure. The error details help identify the cause, and any partial changes are worth checking before a retry.
Anthropic says setting the CLAUDE_CODE_DISABLE_UNCHECKED_ACTIONS_ERROR environment variable to 1 disables the error exit. The changelog describes the setting in terms of how the process exits. It does not say that the variable automatically approves actions the safety check couldn't evaluate.
Handing long-running work to an AI also means handing it some approval decisions. The users who asked for changes in April and September wanted the chance to approve an action and keep working when the AI couldn't make that call.
