Claude Code 2.1.319 backgrounds MCP tasks and can deny permission prompts
Anthropic's Claude Code v2.1.319, published on GitHub, adds support for MCP tasks in the terminal: when an MCP server runs a tool call as a task, Claude Code moves it to the background and reports the result when it finishes. Set CLAUDE_CODE_DISABLE_MCP_TASK_BACKGROUND to wait inside the tool call instead. A new permissions.denyInsteadOfPrompting setting denies any tool call that would wait on a permission prompt and lets the turn continue, in terminal sessions, subagents and teammates. The release also changes auto mode so that, with telemetry or feature flags off including behind LLM gateways, calls the server cannot check are asked about or denied, with no fallback to the built-in classifier. It lists several security fixes, including a sandbox escape when creating a worktree and a Bash permission bypass.
Why it matters: If you run Claude Code unattended in CI or overnight agents, turn on denyInsteadOfPrompting so a permission prompt cannot freeze the session, and update for the security fixes. Check scripts that rely on claude -p exiting 0 when auto mode refuses actions.
GitHub ↗AI-assisted, reviewed by Sorted AI
▲ 0
0 comments