Claude Code 2.1.319 adds background MCP tasks and a deny-instead-of-prompt permission setting
Claude Code 2.1.319 runs MCP tasks in the background, adds permissions.denyInsteadOfPrompting and CLAUDE_CODE_DISABLE_FEATURE_FLAGS, extends the Claude apps gateway, and changes self-paced /loop, plus many security and permission fixes.
What does this mean for me?
Plan for it
Engineering leadership
Cost, risk, timeline, team impact Worth knowingRoutine Claude Code release with several permission and sandbox security fixes; upgrading soon is worth it. Teams relying on self-paced /loop to keep running will see loops end sooner unless CLAUDE_CODE_LOOP_KEEPALIVE=1 is set.
Engineer
What to change, what breaks, what to test Plan for itUpgrade to 2.1.319 for the Bash permission-bypass and worktree sandbox-escape fixes. For headless runs that must never block, set permissions.denyInsteadOfPrompting; set CLAUDE_CODE_LOOP_KEEPALIVE=1 if you depend on self-paced /loop rescheduling, and drop any use of the removed shortcuts_list and shortcuts_execute Chrome tools.
General consumer
Using the Claude apps, not the API No impactNothing changes in the Claude apps; this is a Claude Code release for developers.
Claude Code 2.1.319 is one large release. The auto mode change behind LLM gateways has its own entry; the other user-visible changes:
- MCP tasks. When an MCP server runs a tool call as a task, Claude Code moves it to the background and tells Claude the result when it finishes. This now works without feature-flag fetching (Bedrock, Vertex, Foundry, LLM gateways,
DISABLE_TELEMETRY).CLAUDE_CODE_DISABLE_MCP_TASK_BACKGROUNDmakes it wait inside the tool call instead;CLAUDE_CODE_DISABLE_MCP_TASKS=1turns tasks off. - Permissions. A new
permissions.denyInsteadOfPromptingsetting denies any call that would wait on a permission prompt and lets the turn continue. A session’s exact Bash or PowerShell ask rule is now refused when a broader deny rule covers the command,whichwith unusual flags asks first, and Monitor’s WebSocket watch follows Bash rules. Fixes close a Bash permission bypass through a crafted environment prefix, asedpermission skip, a worktree sandbox escape, and/rewindacting through a directory symlink. - Feature flags.
CLAUDE_CODE_DISABLE_FEATURE_FLAGSstops feature-flag fetching without turning off telemetry. /loop. Self-paced/loopnow ends when a turn finishes without rescheduling, instead of scheduling a fallback wakeup;CLAUDE_CODE_LOOP_KEEPALIVE=1keeps the old behaviour.- Claude apps gateway. Pooled-budget ordering (
admin.pooled_conflict_rule,admin.pooled_priority_order), alogin_noticemessage, JSON logs withCLAUDE_GATEWAY_LOG_FORMAT=json,/usagespend for developers with no spend limit, and start-up warnings ahead of a Claude Desktop change on November 10. - Billing visibility. Claude Code warns when a claude.ai login ends and it continues on the
ant auth loginsign-in, which bills the Claude Console organization, and names that organization at startup. - Removed. The
shortcuts_listandshortcuts_executeClaude in Chrome tools. Self-hosted runners no longer upload a session’s debug log at the end of the session. - Other.
/claude-api latency-optimize, an “Earlier in this session” row in/tasks, and older models grouped under “More models” in/model.
The changelog does not date releases; 2.1.319 appeared between the November 5 and November 6, 2026 (21:00 UTC) fetches, so the date is approximate.
Topics: Agents and tool use, Coding tools