All areas Feed Weekly digests

sandbox

The tracked changes tagged sandbox, newest release first. Every sentence is an item's summary.

116 items from 37 releases, 16 breaking Sources: Claude Code, Codex, Gemini CLI Last change:

Goes with

Changes

Codex 0.172.0

  1. fix

    codex exec resume restores saved sandbox permissions, the working directory, and workspace roots unless explicitly overridden.

  2. fix

    Remote sessions preserve working directories, workspace roots, and writable paths when client and server run on different operating systems.

Claude Code v2.1.331

  1. fix

    Fixed sandboxed Bash commands sometimes failing to start on a full temp disk when sandbox file rules keep commands out of the temp directory.

Claude Code v2.1.330

  1. other

    Improved the macOS sandbox error for too-long deny lists; it names the long lists and how to shorten them.

Claude Code v2.1.329

  1. fix

    Fixed /sandbox on Linux listing allowUnixSockets entries as allowed; /sandbox now states they do not open those sockets there.

Gemini CLI Release v0.70.0

  1. other

    Updated workspace dependencies and sandbox runtime packages.

Gemini CLI Release v0.69.0

  1. fix

    Handles file watcher errors and permits FSEvents in the macOS permissive sandbox.

  2. fix

    Resolves folder trust before entering the macOS Seatbelt sandbox.

Claude Code v2.1.328

  1. fix

    The Linux Bash sandbox no longer renames .git/HEAD after each command when the branch name is not valid UTF-8.

  2. other

    A shell command rewritten by a PermissionRequest hook to a sandbox-excluded command runs outside the sandbox.

  3. other

    When a sandbox cannot start (unless sandbox.failIfUnavailable is set), the next sandboxed Bash command is refused and reports that the sandbox is off for the session.

Codex 0.170.0

  1. fix

    Fixed Windows file replacement, sandbox permission preservation, and runtime registration recovery.

  2. fix

    Fixed permission updates and child threads losing existing sandbox restrictions.

  3. docs

    Updated sandbox documentation to explain permission profiles and filesystem rules.

  4. other

    Removed the legacy sandbox policy setter from Config.

Claude Code v2.1.326

  1. breaking Breaking

    Edits in a session's mods folder ask more often, and sandboxed commands write to fewer folders; a link there to an unreadable or network path may need removing if every edit asks.

  2. breaking Breaking

    Sandboxed commands on macOS, Linux and WSL no longer write to some sensitive home folders by default; allowing them requires sandbox.filesystem.allowWrite in user or managed settings.

  3. breaking Breaking

    claude mcp serve now ignores sandbox.excludedCommands.

  4. breaking Breaking

    Commands in a permission hook or SDK host rewrite stay in the sandbox if the original was checked as sandboxed; the approver can add dangerouslyDisableSandbox: true.

  5. breaking Breaking

    Claude Code no longer keeps some sandbox state, and Bash may ask first until /sandbox or /cd is run.

+10 more
  1. fix

    Sandboxed commands on Linux start when the home or config directory is reached through a symlink into /net and sandbox settings deny reads of it.

  2. fix

    Empty placeholder files such as .git/config.lock are no longer left in the project on Linux when Claude Code is stopped during a sandboxed command.

  3. fix

    Letters typed over /sandbox or a delete question in /permissions no longer move the selection.

  4. other

    Bash sandbox protections are improved on macOS, Linux and WSL.

  5. other

    Claude's sandbox instructions on Linux now say a server is reachable only from the command that started it.

  6. fix

    [VSCode] The Sandbox dialog no longer creates empty files and folders in the home directory and project .git folder while the sandbox is off.

  7. other

    The Bash sandbox sets aside unexpected entries in a repository's .git folder after a command.

  8. other

    The Bash sandbox on Linux and WSL creates some missing --add-dir folders before each sandboxed command.

  9. other

    /rewind on macOS, Linux and WSL leaves some files untouched and reports them as skipped when the sandbox is on.

  10. other

    Bash sandbox state is kept in some cases until /sandbox or /cd is run.

Claude Code v2.1.325

  1. breaking Breaking

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

  2. breaking Breaking

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

  3. breaking Breaking

    Changed the sandbox to refuse sandboxed writes to .claude settings, skills, agents, commands, and hooks in added directories, as it already does in the launch folder.

  4. other

    Added a note for Claude when a sandboxed git checkout, git stash, or autostash pull cannot update protected files such as those in .claude.

  5. fix

    Fixed sandboxed commands being able to write to the native updater's download folder in some cases.

    sandboxupdater
+6 more
  1. fix

    Fixed a case where the Bash sandbox did not fully protect a worktree's settings and hooks.

  2. fix

    Fixed a case where the Bash sandbox did not fully protect a linked worktree's shared git folder.

  3. fix

    Fixed Linux sandboxed Bash commands failing with bwrap Can't create file when the working directory is below an allowRead folder inside a denyRead folder.

  4. other

    Changed the programs the sandbox starts for its own use, such as its network bridge, to run without Claude Code sign-in tokens and API keys in their environment.

  5. other

    Changed ripgrep, local git commands, and sandbox runtime helper programs to run without the mTLS client key passphrase in their environment.

  6. other

    Changed Claude Code on the web, cloud scheduled tasks, and Cowork cloud sessions to start despite sandbox.failIfUnavailable, since the hosted container has no command sandbox.

Claude Code v2.1.323

  1. breaking Breaking

    Changed glab config set without --global or --host, and glab config edit --local, to fail read-only inside the Bash sandbox; run them outside it.

  2. breaking Breaking

    Changed the Bash sandbox on macOS, Linux, and WSL to ignore write access granted through a symlink leading elsewhere or to a missing path; grant the real path instead.

  3. breaking Breaking

    Changed the macOS and Linux sandbox so git worktree add, move, and remove fail read-only, as do commits in worktrees the session was not started in or given.

  4. breaking Breaking

    Changed start-up to stop when a --settings file is not valid JSON and has a sandbox key, even one that turns the sandbox off.

  5. breaking Breaking

    [VSCode] Changed opening a Claude Code on the web session in a folder with the sandbox on: the extension no longer switches to the session's branch automatically, and the dialog says why.

+9 more
  1. fix

    Fixed a case where the Bash sandbox could switch off during a session.

  2. fix

    Fixed sandbox.excludedCommands letting a command not named in it run outside the sandbox in some cases.

  3. fix

    Fixed the Bash sandbox not fully protecting Claude Code's own config on installs still using the legacy config file.

  4. fix

    Fixed sandboxed commands being able to read Claude Code's file checkpoint copies under the config directory.

  5. fix

    Fixed HTTP hooks failing with HTTP 500 on Linux when CLAUDE_CODE_SUBPROCESS_ENV_SCRUB is set and sandbox.enabled is off.

  6. fix

    Fixed claude -p and the Agent SDK running Bash unsandboxed when sandbox-enabling settings fail validation; start-up now stops and names the invalid setting.

  7. other

    Changed the GitLab merge request badge to show only for the repository a sandboxed session opened in.

    gitlabsandbox
  8. other

    Changed the macOS Bash sandbox so lsof and similar tools may show less about processes a command did not start.

  9. feature

    [Claude Code on the web] Added a failure notification when a scheduled task cannot start because its settings require an unavailable sandbox.

Gemini CLI Release v0.68.0

  1. fix

    --userns=keep-id is now supplied for rootless podman sandboxes.

Claude Code v2.1.321

  1. fix

    A read-only Bash command in one case ran outside the sandbox without a permission prompt; this is fixed.

Claude Code v2.1.319

  1. breaking Breaking

    Changed nested skill loading so that with the Bash sandbox on, skills in .claude/skills folders below the starting folder load only if Claude Code starts there or /cd there.

  2. fix

    Fixed a sandbox escape when creating a worktree.

Codex 0.167.0

  1. fix

    Missing parent directories are created for MXC deny paths on Windows.

  2. fix

    Read-only volume-root expansion is skipped in the MXC sandbox.

Gemini CLI Release v0.67.0

  1. feature

    The IDE companion is now bridged into container sandboxes over exec stdio.

Claude Code v2.1.314

  1. fix

    Fixed the sandbox.excludedCommands description saying listed commands always run outside the sandbox; it now says every command in a call must match an entry.

  2. fix

    Fixed sandbox protections not applying to a worktree entered through claude -p --resume or --continue.

Codex 0.166.0

  1. other

    Preserved SystemRoot for Windows filesystem sandbox helpers.

  2. other

    Loaded cloud config for sandbox and remote exec-server commands.

  3. other

    Avoided object-identity preflight for MXC path grants.

  4. other

    Limited MXC volume expansion probes to symbolic links.

  5. other

    Excluded unrelated network shares from MXC default reads.

Claude Code v2.1.311

  1. fix

    Linux: Fixed sandboxed Bash commands failing with bwrap Can't create file when a --plugin-dir folder was also an added directory and permissions.blockReadsOutsideWorkingDirectories was on.

Claude Code v2.1.310

  1. other

    On Linux, /sandbox and the sandbox startup warning now name Ubuntu's AppArmor restriction on user namespaces and how to lift it when it keeps bubblewrap from starting the sandbox.

Codex 0.164.0

  1. feature

    Masks credentials during supported remote Bash commands and Zsh snapshot sessions, including credentials from custom providers.

  2. fix

    Sandbox checks are hardened for case-variant metadata paths on macOS and for replaceable symlinks used to locate executables.

  3. other

    Rejects unpackaged Windows sandbox provisioning clients.

  4. other

    Migrates the Windows MXC sandbox to mxc-sdk.

Claude Code v2.1.309

  1. fix

    Sandboxed Bash commands on macOS and Linux no longer run the shell's startup files outside the sandbox before each command.

  2. fix

    macOS sandbox denyWrite glob patterns now apply at a path's real location when the pattern's folder is reached through a symlink.

  3. fix

    Sandboxed commands and auto-accepted edits can no longer modify the MCP config file passed with --mcp-config.

  4. fix

    Read no longer reports File does not exist for PDF page ranges in Linux sandboxes that share the parent's /proc.

  5. fix

    On Linux, sandbox write denies are no longer lifted when a background command outlived the session.

+1 more
  1. other

    Commands the settings exclude from the sandbox now ask before writing to its write-list paths when the sandbox is enabled but cannot run, and the unsandboxed fallback is refused there.

Claude Code v2.1.305

  1. feature

    Added the sandbox.allowNestedUserNamespaces setting so sandboxed commands on Linux can create user namespaces (for Chromium and rootless podman), which the notes say lets them get around the sandbox's file protections.

Claude Code v2.1.304

  1. fix

    Fixed sandboxed commands failing to start on Linux when a sandbox.filesystem.denyRead glob contains brackets that are not a character class.

Codex 0.163.0

  1. docs

    Clarified how the Linux sandbox uses bubblewrap for filesystem isolation and seccomp for syscall filtering.

Claude Code v2.1.300

  1. breaking Breaking

    The --sandbox and --no-sandbox flags were removed from claude remote-control; passing either now exits with an error, and sandbox.enabled in settings should be set instead.

  2. other

    The /sandbox mode options now read Sandbox commands instead of Sandbox BashTool.

Claude Code v2.1.299

  1. fix

    Fixed a sandboxed shell command being able to write into a --plugin-dir folder whose code is run outside the sandbox.

  2. fix

    Fixed sandboxed commands failing on WSL2 with a bwrap mkdir error when the sandbox can write to the Windows drive.

    sandboxwsl
  3. fix

    Fixed sign-in, MCP servers and project trust appearing lost on Linux after a sandboxed command left an empty .config.json in the config directory.

  4. fix

    Fixed /sandbox reporting success when its setting could not be saved because the project folder is not writable; it now says nothing changed and why.

  5. fix

    Fixed sandboxed commands on macOS reading or writing a denied path by its real location when the denied path passes through a symlink.

+3 more
  1. fix

    Fixed sandbox denyRead and allowRead globs with braces, parentheses or backslashes being read differently by settings checks than by the sandbox.

  2. fix

    Fixed sandbox glob allowRead and allowWrite entries not being re-checked when their starting directory is replaced by a symlink.

  3. fix

    Improved sandboxed Bash on Linux so Esc and Ctrl-C work while wildcard read rules are being expanded.

Claude Code v2.1.293

  1. fix

    Fixed the /ultrareview upload on Linux wrongly refusing some repositories over a settings file reported as unparseable while a sandboxed command was running.

Claude Code v2.1.292

  1. fix

    Fixed sandboxed commands being able to read staged file copies of /ultrareview uploads under ~/.claude/seed-admin.

  2. fix

    Fixed a managed sandbox read-deny path, and user ones beside it, that appears or changes mid-session not dropping project grants inside it or ending credential injection from covered files.

  3. other

    Improved sandbox auto-allow so that with strict sandbox mode in user, managed or --settings configuration, an interpreter command with an env var prefix such as FOO=bar python3 app.py runs unprompted.

Claude Code v2.1.290

  1. feature

    Added a /status and doctor warning when managed settings ignore user-configured sandbox allowRead paths or allowed domains.

  2. fix

    Fixed sandboxed commands piping a heredoc asking for approval on every run.

  3. fix

    Short forms of git clone options are now treated like long forms for sandbox.excludedCommands exemptions.

  4. fix

    Sandboxed Monitor tool commands now follow permission rules under sandbox auto-allow.

  5. fix

    Fixed freezes on Linux and WSL when a sandbox read rule covers a large folder.

+1 more
  1. fix

    Fixed sandboxed Bash on Linux triggering ConfigChange hooks and settings reloads when project settings files don't exist.

Claude Code v2.1.289

  1. fix

    Fixed Bash deny and ask rules missing a command behind an environment variable prefix with an expanded value when the sandbox auto-allows commands.

  2. fix

    Fixed a Bash deny or ask rule being skipped under sandbox auto-allow when a bare variable assignment came before the command.

Claude Code v2.1.288

  1. fix

    Fixed sandboxed heredocs with an unquoted delimiter asking for approval on every run under sandbox auto-allow when the body has only plain text and simple $VAR references.

  2. fix

    Fixed sandbox.credentials.files entries on git config files not taking effect while permissions.blockReadsOutsideWorkingDirectories is on.

Claude Code v2.1.287

  1. fix

    Fixed sandboxed Bash commands on Linux inheriting an open handle on the Claude Code executable.

Claude Code v2.1.285

  1. fix

    Fixed sandbox auto-allow asking for approval on every run of inline scripts like python3 -c or node -e just because they contain =.

  2. other

    Project settings can no longer widen or turn off an admin-required sandbox, replace the proxy behind a managed deny list, extend a strict allowlist, or reopen managed read-denies.

Claude Code v2.1.284

  1. fix

    Fixed sandboxed Bash commands failing to start on Linux when the working directory is write-denied and contains a read-denied directory.

  2. other

    Improved Workflow tool sandbox hardening for errors thrown by async script hooks.

Claude Code v2.1.283

  1. fix

    Fixed sandboxed git asking credential helpers to store the sandbox proxy's login.

  2. fix

    Fixed managed sandbox settings being ignored entirely when one nested value was invalid; the invalid value now fails closed and the rest applies.

Claude Code v2.1.282

  1. breaking Breaking

    Changed sandbox.excludedCommands to ignore project and local settings entries when allowUnsandboxedCommands is false via managed settings or --settings, or managed allowManagedDomainsOnly is true.