Claude Code: Sandboxed Bash commands follow normal permission flow by default

Sandboxed Bash commands follow the normal permission flow by default; set sandbox.autoAllowBashIfSandboxed: true to keep running them without prompts.

Claude Code
Event type
Feature
Version
v2.1.325
Published by vendor
Compiled here
On this page

Key change

Sandboxed Bash commands now follow the normal permission flow by default, and setting sandbox.autoAllowBashIfSandboxed: true keeps them running without prompts.

Official source

What changed

9 points

  1. Sandboxed Bash commands now follow the normal permission flow by default, and setting sandbox.autoAllowBashIfSandboxed: true keeps them running without prompts.

    Official wording · c1

    Changed sandboxed Bash commands to follow the normal permission flow by default; set sandbox.autoAllowBashIfSandboxed: true to keep running them without prompts

    Official wording · c1
  2. For managed settings that turn the sandbox on, keeping commands running without prompts requires setting sandbox.autoAllowBashIfSandboxed: true in your highest-ranking managed source.

    Official wording · c2

    Changed managed settings that turn the sandbox on: to keep commands running without prompts, set sandbox.autoAllowBashIfSandboxed: true in your highest-ranking managed source

    Official wording · c2
  3. Scheduled tasks and /loop now ask before running a skill that declares allowed-tools or hooks, and adding Skill(name) to permissions.allow lets it run unattended.

    Official wording · c3

    Changed scheduled tasks and /loop to ask before running a skill that declares allowed-tools or hooks; add Skill(name) to permissions.allow to run it unattended

    Official wording · c3
  4. Read-only git commands now ask first in a repository that isn't the project's or one you trusted; naming it with --add-dir, not the additionalDirectories setting, runs them without prompts.

    Official wording · c4

    Changed read-only git commands to ask first in a repository that isn't the project's or one you trusted; name it with --add-dir, not the additionalDirectories setting, to run them without prompts

    Official wording · c4
  5. A security issue in how zstd-compressed responses are decoded was fixed.

    Official wording · c5

    Fixed a security issue in how zstd-compressed responses are decoded

    Official wording · c5
  6. A gap in Bash permission checks, where some compound commands could run without asking, was fixed, and these commands now ask for permission.

    Official wording · c6

    Fixed a gap in Bash permission checks where some compound commands could run without asking; these now ask for permission

    Official wording · c6
  7. VSCode gains prompt suggestions wherever the terminal shows them: Tab accepts the suggested next prompt, and promptSuggestionEnabled: false in Claude Code's settings.json turns them off.

    Official wording · c7

    [VSCode] Added prompt suggestions wherever the terminal shows them: Tab accepts the suggested next prompt; promptSuggestionEnabled: false in Claude Code's settings.json turns them off

    Official wording · c7
  8. Marketplace ref now accepts the full ID of any commit on a branch or tag, but clients before this version can't clone such a pin, so a marketplace pinned this way stops loading there.

    Official wording · c8

    Changed marketplace ref to accept the full ID of any commit on a branch or tag; clients before this version can't clone such a pin, so a marketplace pinned this way stops loading there

    Official wording · c8
  9. In Claude Code on the web, new cloud sessions used to cut MCP tool descriptions loaded through tool search at 4,096 characters; the limit is now 16,384, as in other Claude Code sessions.

    Official wording · c9

    [Claude Code on the web] Fixed new cloud sessions cutting MCP tool descriptions loaded through tool search at 4,096 characters; the limit is now 16,384, as in other Claude Code sessions

    Official wording · c9

Change details

This table organizes reviewed facts and retains their language. See each point’s quotation for the original text.

IDSubjectActionObjectScopeValues
c1sandboxed Bash commandschanged to follownormal permission flow by default
c2managed settings that turn the sandbox onrequire settingsandbox.autoAllowBashIfSandboxed: true to keep commands running without promptshighest-ranking managed source
c3scheduled tasks and /loopask before runninga skill that declares allowed-tools or hooks
c4read-only git commandsask firstin a repository that isn't the project's or one you trusted
c5Claude Codefixeda security issue in how zstd-compressed responses are decoded
c6Bash permission checksfixed a gapsome compound commands could run without asking
c7VSCodeaddedprompt suggestionsVSCode
c8marketplace refchanged to acceptthe full ID of any commit on a branch or tag
c9Claude Code on the webfixedMCP tool descriptions cut at 4,096 characters; limit now 16,384new cloud sessions; MCP tool descriptions loaded through tool searchexactly 16384 characters

Version timeline

Published updates for this tool on this site, newest official date first.

  1. Code Mode can be turned on while agent teams are enabled
  2. CurrentSandboxed Bash commands follow normal permission flow by default
  3. No repository option for Anthropic-hosted cloud sessions
  4. Claude apps gateway admin API adds a cost report
  5. Added sandbox.allowNestedUserNamespaces for sandboxed Linux commands
  6. Cache write token fields added to OpenTelemetry api_request event

About this tool

Claude Code

Claude Code is Anthropic's coding agent for reading codebase context, editing files, running commands and assisting development work.

CategoriesAI Coding

View Claude Code details

Related guides

Source and notes

Official source · github.com/anthropics/claude-code/releases/tag/v2.1.325

About this AI summary

This entry was compiled by AI from official sources and automatically checked. Found a mistake? Please send feedback.