
Fixing Sandboxed Bash Permission Prompts in Claude Code 2.1.325
Learn how Claude Code version 2.1.325 changes sandboxed Bash permissions by requiring explicit approval unless configured with autoAllowBashIfSandboxed true. We also cover crucial fixes to permission gaps, new prompts for scheduled tasks and loops, and smaller quality-of-life updates.
Chapter 1
Sandboxed Bash Now Asks First in 2.1.325
Lachlan Reed
Quick heads up before you run your next sandboxed script, because it might just sit there waiting on you. This is The Claude Code Changelog, brought to you by Jellypod AI. Version 2.1.325 changed a default that a lot of people were leaning on.
James Turner
Yeah, and it connects to the sandbox coverage we did earlier. Sandboxing isolated the OS boundary, macOS Seatbelt, Linux and WSL2 bubblewrap. But up to 2.1.323 and 324, turning on sandbox.enabled true quietly turned on auto allow too. Sandboxed Bash commands ran without a prompt, unless a content scoped ask or an explicit deny matched.
James Turner
In 2.1.325, that's flipped. Sandboxed Bash now goes through the normal permission flow. So you need an approval, or a matching allow rule, or you opt back in explicitly. The reasoning is separation of concerns. The sandbox bounds what a command can reach. Permissions decide whether Claude Code should run it at all. Those are two layers, and they shouldn't be silently merged.
Lachlan Reed
Which is fair, but if you had a hands off setup, it's gonna bite. Scripts that assumed no prompts will stall waiting for approval, or just fail in non interactive environments. So what's the fix?
James Turner
One setting. In your user settings or project .claude settings file, you write sandbox, enabled true, and autoAllowBashIfSandboxed true. That restores the old behavior. And if you just want to test it, you can pass it ad hoc: claude, then the settings flag, with a JSON string like sandbox enabled true, autoAllowBashIfSandboxed true.
Lachlan Reed
And for teams that roll this out centrally?
James Turner
Then it needs to be in the highest priority managed settings tier. If your org enforces the sandbox but leaves that flag out, developers get a prompt on every command that isn't covered by permissions allow. And in some tiers, local settings can't override the managed lock to quiet it. So check your managed config first, because that's where the complaints will land.
Lachlan Reed
There's a related one for scheduled work. In 2.1.325, scheduled tasks and /loop now prompt before running any skill that declares allowed tools or hooks. If you want those to run in the background without stalling, add Skill, then the skill name in parentheses, to permissions allow.
James Turner
2.1.325 also fixed three Bash permission gaps, and they matter here. Deny and ask rules weren't applied to certain compound Bash commands, and now those ask. A Bash allow rule could run a different program than the one named in the rule. And relative deny or ask rules, like Read dot slash dot env, failed to cover the project after a cd. All fixed.
Lachlan Reed
One caveat. The Bash sandbox is still macOS, Linux and WSL2 only. Native Windows runs commands unsandboxed. So this default flip is about those three platforms.
James Turner
A few smaller things. In VS Code, the integrated terminal now shows a spinner tip reminding you to re run notebook cells after Claude reads or edits a Jupyter notebook. When a subagent hits its output token limit, Claude Code now asks it to regenerate the whole answer concisely, instead of handing back a clipped tail.
Lachlan Reed
Nice. Also, pressing Esc on a background MCP task prompt now marks it answer later. The question stays in /tasks, and nothing gets killed or sent as an empty reply. And when org policy blocks a request, you now get guidance: /rewind to edit the prompt, or /clear to reset state. Also, don't keep persistent files in the scratchpad folder, since it can get wiped between operations.
James Turner
So the takeaway: if your sandboxed workflow suddenly asks for approval after updating, add autoAllowBashIfSandboxed true, deliberately, knowing the sandbox is no longer deciding that for you.