sandbox
The tracked changes tagged sandbox, newest release first. Every sentence is an item's summary.
Goes with
Changes
Codex 0.172.0
-
codex exec resume restores saved sandbox permissions, the working directory, and workspace roots unless explicitly overridden.
-
Remote sessions preserve working directories, workspace roots, and writable paths when client and server run on different operating systems.
Claude Code v2.1.331
-
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
-
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
-
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
-
Updated workspace dependencies and sandbox runtime packages.
Gemini CLI Release v0.69.0
-
Handles file watcher errors and permits FSEvents in the macOS permissive sandbox.
-
Resolves folder trust before entering the macOS Seatbelt sandbox.
Claude Code v2.1.328
-
The Linux Bash sandbox no longer renames .git/HEAD after each command when the branch name is not valid UTF-8.
-
A shell command rewritten by a PermissionRequest hook to a sandbox-excluded command runs outside the sandbox.
-
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
-
Fixed Windows file replacement, sandbox permission preservation, and runtime registration recovery.
-
Fixed permission updates and child threads losing existing sandbox restrictions.
-
Updated sandbox documentation to explain permission profiles and filesystem rules.
-
Removed the legacy sandbox policy setter from Config.
Claude Code v2.1.326
-
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.
-
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.
-
claude mcp serve now ignores sandbox.excludedCommands.
-
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.
-
Claude Code no longer keeps some sandbox state, and Bash may ask first until /sandbox or /cd is run.
+10 more
-
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.
-
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.
-
Letters typed over /sandbox or a delete question in /permissions no longer move the selection.
-
Bash sandbox protections are improved on macOS, Linux and WSL.
-
Claude's sandbox instructions on Linux now say a server is reachable only from the command that started it.
-
[VSCode] The Sandbox dialog no longer creates empty files and folders in the home directory and project .git folder while the sandbox is off.
-
The Bash sandbox sets aside unexpected entries in a repository's .git folder after a command.
-
The Bash sandbox on Linux and WSL creates some missing --add-dir folders before each sandboxed command.
-
/rewind on macOS, Linux and WSL leaves some files untouched and reports them as skipped when the sandbox is on.
-
Bash sandbox state is kept in some cases until /sandbox or /cd is run.
Claude Code v2.1.325
-
Changed sandboxed Bash commands to follow the normal permission flow by default; set sandbox.autoAllowBashIfSandboxed to true to keep running them without prompts.
-
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.
-
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.
-
Added a note for Claude when a sandboxed git checkout, git stash, or autostash pull cannot update protected files such as those in .claude.
-
Fixed sandboxed commands being able to write to the native updater's download folder in some cases.
sandboxupdater
+6 more
-
Fixed a case where the Bash sandbox did not fully protect a worktree's settings and hooks.
-
Fixed a case where the Bash sandbox did not fully protect a linked worktree's shared git folder.
-
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.
-
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.
-
Changed ripgrep, local git commands, and sandbox runtime helper programs to run without the mTLS client key passphrase in their environment.
-
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
-
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.
-
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.
-
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.
-
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.
-
[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
-
Fixed a case where the Bash sandbox could switch off during a session.
-
Fixed sandbox.excludedCommands letting a command not named in it run outside the sandbox in some cases.
-
Fixed the Bash sandbox not fully protecting Claude Code's own config on installs still using the legacy config file.
-
Fixed sandboxed commands being able to read Claude Code's file checkpoint copies under the config directory.
-
Fixed HTTP hooks failing with HTTP 500 on Linux when CLAUDE_CODE_SUBPROCESS_ENV_SCRUB is set and sandbox.enabled is off.
-
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.
-
Changed the GitLab merge request badge to show only for the repository a sandboxed session opened in.
gitlabsandbox -
Changed the macOS Bash sandbox so lsof and similar tools may show less about processes a command did not start.
-
[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
-
--userns=keep-id is now supplied for rootless podman sandboxes.
Claude Code v2.1.321
-
A read-only Bash command in one case ran outside the sandbox without a permission prompt; this is fixed.
Claude Code v2.1.319
-
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.
-
Fixed a sandbox escape when creating a worktree.
Codex 0.167.0
-
Missing parent directories are created for MXC deny paths on Windows.
-
Read-only volume-root expansion is skipped in the MXC sandbox.
Gemini CLI Release v0.67.0
-
The IDE companion is now bridged into container sandboxes over exec stdio.
Claude Code v2.1.314
-
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.
-
Fixed sandbox protections not applying to a worktree entered through claude -p --resume or --continue.
Codex 0.166.0
-
Preserved SystemRoot for Windows filesystem sandbox helpers.
-
Loaded cloud config for sandbox and remote exec-server commands.
-
Avoided object-identity preflight for MXC path grants.
-
Limited MXC volume expansion probes to symbolic links.
-
Excluded unrelated network shares from MXC default reads.
Claude Code v2.1.311
-
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
-
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
-
Masks credentials during supported remote Bash commands and Zsh snapshot sessions, including credentials from custom providers.
-
Sandbox checks are hardened for case-variant metadata paths on macOS and for replaceable symlinks used to locate executables.
-
Rejects unpackaged Windows sandbox provisioning clients.
-
Migrates the Windows MXC sandbox to mxc-sdk.
Claude Code v2.1.309
-
Sandboxed Bash commands on macOS and Linux no longer run the shell's startup files outside the sandbox before each command.
-
macOS sandbox denyWrite glob patterns now apply at a path's real location when the pattern's folder is reached through a symlink.
-
Sandboxed commands and auto-accepted edits can no longer modify the MCP config file passed with --mcp-config.
-
Read no longer reports File does not exist for PDF page ranges in Linux sandboxes that share the parent's /proc.
-
On Linux, sandbox write denies are no longer lifted when a background command outlived the session.
+1 more
-
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
-
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
-
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
-
Clarified how the Linux sandbox uses bubblewrap for filesystem isolation and seccomp for syscall filtering.
Claude Code v2.1.300
-
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.
-
The /sandbox mode options now read Sandbox commands instead of Sandbox BashTool.
Claude Code v2.1.299
-
Fixed a sandboxed shell command being able to write into a --plugin-dir folder whose code is run outside the sandbox.
-
Fixed sandboxed commands failing on WSL2 with a bwrap mkdir error when the sandbox can write to the Windows drive.
sandboxwsl -
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.
-
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.
-
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
-
Fixed sandbox denyRead and allowRead globs with braces, parentheses or backslashes being read differently by settings checks than by the sandbox.
-
Fixed sandbox glob allowRead and allowWrite entries not being re-checked when their starting directory is replaced by a symlink.
-
Improved sandboxed Bash on Linux so Esc and Ctrl-C work while wildcard read rules are being expanded.
Claude Code v2.1.293
-
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
-
Fixed sandboxed commands being able to read staged file copies of /ultrareview uploads under ~/.claude/seed-admin.
-
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.
-
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
-
Added a /status and doctor warning when managed settings ignore user-configured sandbox allowRead paths or allowed domains.
-
Fixed sandboxed commands piping a heredoc asking for approval on every run.
-
Short forms of git clone options are now treated like long forms for sandbox.excludedCommands exemptions.
-
Sandboxed Monitor tool commands now follow permission rules under sandbox auto-allow.
-
Fixed freezes on Linux and WSL when a sandbox read rule covers a large folder.
Claude Code v2.1.289
-
Fixed Bash deny and ask rules missing a command behind an environment variable prefix with an expanded value when the sandbox auto-allows commands.
-
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
-
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.
-
Fixed sandbox.credentials.files entries on git config files not taking effect while permissions.blockReadsOutsideWorkingDirectories is on.
Claude Code v2.1.287
-
Fixed sandboxed Bash commands on Linux inheriting an open handle on the Claude Code executable.
Claude Code v2.1.285
-
Fixed sandbox auto-allow asking for approval on every run of inline scripts like python3 -c or node -e just because they contain =.
-
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
-
Fixed sandboxed Bash commands failing to start on Linux when the working directory is write-denied and contains a read-denied directory.
-
Improved Workflow tool sandbox hardening for errors thrown by async script hooks.
Claude Code v2.1.283
-
Fixed sandboxed git asking credential helpers to store the sandbox proxy's login.
-
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
-
Changed sandbox.excludedCommands to ignore project and local settings entries when allowUnsandboxedCommands is false via managed settings or --settings, or managed allowManagedDomainsOnly is true.