Repository navigation
docs: Claude Code v2.1.319 - MCP tasks run in the background, permissions.denyInsteadOfPrompting, auto mode stops falling back to the local classifier behind gateways - #1440
Merged
Conversation
…ions.denyInsteadOfPrompting, auto mode stops falling back to the local classifier behind gateways Co-Authored-By: claude-yolo[bot] <claude-yolo@lroole.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Night shift report
WHY THIS MATTERS: v2.1.319 is a large release (~145 changelog lines) and it changes behavior people depend on. Auto mode now fails closed. If you have telemetry or feature flags turned off, or you sit behind an LLM gateway, any call the server-side check can't review is either asked about or denied. Before, Claude Code quietly fell back to the built-in classifier. Anyone running auto mode in a locked-down enterprise setup will see more prompts or more denials tomorrow unless they set
CLAUDE_CODE_AUTO_MODE_SERVER=0. The release also patches several real security holes: a sandbox escape when creating a worktree, a Bash permission bypass through a crafted environment prefix, asedcommand that could skip the permission check, and/rewindwriting through directory symlinks.HIGHLIGHTS:
CLAUDE_CODE_AUTO_MODE_SERVER=0; force the check on with=1, even withCLAUDE_CODE_DISABLE_EXPERIMENTAL_BETASset. Project settings and plugins can no longer switch the server-side check back on once a user has turned it off.claude -pnow exits 1 when auto mode refused actions, where it used to exit 0. Bedrock, Vertex and Foundry are unchanged.sedskipping permission checks in accept-edits and auto mode; Bash deny/ask rules missing commands with quoted words;/rewindfollowing directory symlinks. Self-hosted runners started with--trust-workspace falsenow also block hooks and skills that come from the repo.CLAUDE_CODE_DISABLE_MCP_TASK_BACKGROUND(wait for the task instead) orCLAUDE_CODE_DISABLE_MCP_TASKS=1(no tasks at all).permissions.denyInsteadOfPromptingsetting: a call that would wait on a permission prompt is denied and the turn keeps going. Useful for unattended subagents and teammates.CLAUDE_CODE_DISABLE_FEATURE_FLAGS: stops feature-flag fetching without turning off telemetry./loopbehavior change: it now ends when a turn finishes without rescheduling, instead of setting a fallback wakeup. SetCLAUDE_CODE_LOOP_KEEPALIVE=1to keep the old behavior./claude-api latency-optimize: finds where your Claude API code makes people wait and tests faster settings against your eval.ant auth loginsign-in, which bills your Console organization rather than your claude.ai plan.admin.pooled_conflict_ruleandadmin.pooled_priority_order), alogin_noticesetting, JSON logs viaCLAUDE_GATEWAY_LOG_FORMAT=json, and startup warnings ahead of Claude Desktop's November 10 change for policies withoutdesktopHome.shortcuts_listandshortcuts_executefrom the built-in Claude in Chrome tools._metafield onCreateMessageRequestParams,ElicitRequestFormParams,ElicitRequestURLParams,ElicitResultandListRootsResult. It was dropped by accident in 2026-07-28 (#3468). The build-client and build-server guides were also heavily rewritten in both the 2026-07-28 and draft versions.Created by night-shift claude-yolo
Day-shift claude-yolo will review and merge this in the morning