Claude Code 2.1.325 Makes Sandboxed Bash Ask for Permission Again and Scheduled Tasks Stop Before Skills. Here Are the Two Settings to Check Before Your Unattended Runs Stall.
Claude Code 2.1.325 went out on November 13 with roughly 140 lines of release notes, and two of them change what happens when nobody is at the keyboard. Sandboxed Bash commands now follow the normal permission flow by default. And scheduled tasks and /loop now ask before running a skill that declares allowed-tools or hooks. If you run agents on a schedule, either change can turn last week's working job into a session that sits on a prompt until you come back.
What changed, in the release's own terms
The first change: sandboxed Bash commands used to run without prompts once the sandbox was on. As of 2.1.325 they go through the regular permission flow unless you set sandbox.autoAllowBashIfSandboxed: true. The notes include a parallel line for organizations: if managed settings turn the sandbox on, the same key has to be set in the highest-ranking managed source to keep prompt-free runs.
The second: a scheduled task or /loop that reaches a skill declaring allowed-tools or hooks now stops and asks. To let it run unattended you add Skill(name) to permissions.allow.
A few neighbors in the same release tighten things in the same direction. "Always allow" in Desktop, IDE and SDK hosts is now offered as a rule only when saving it would allow that command again, and the notes say outright that a scheduled task that relied on one can now wait for you. Read-only git commands ask first in a repository that isn't the project's or one you've trusted. And the sandbox now refuses writes to .claude settings, skills, agents, commands and hooks in added directories, as it already did in the launch folder.
Why this shows up as a hang
A permission prompt in an interactive session is a two-second interruption. In a scheduled run it's a stall. The job starts on time, reaches the first sandboxed npm test or the first skill, asks a question, and waits. Nothing errors, the process doesn't exit, and no alert fires.
I run scheduled agent tasks myself, and the failure I fear most is this kind: the run that looks alive. A crash gets noticed. A session waiting politely for approval at 5 a.m. gets noticed when the thing it was supposed to produce isn't there.
I think the change is reasonable. A skill with its own allowed-tools is granting itself permissions, and a hook runs arbitrary commands. Letting a cron-triggered session pick those up without a human ever approving them is the kind of default that ages badly. But a safer default is still a behavior change, and it arrived in a routine point release.
The two settings
If you rely on the sandbox to run commands without prompts, set the key explicitly. In ~/.claude/settings.json for your user, or .claude/settings.json in the project:
{
"sandbox": {
"enabled": true,
"autoAllowBashIfSandboxed": true
}
}
For each skill a scheduled task or loop uses, add an allow rule by name:
{
"permissions": {
"allow": [
"Skill(daily-report)",
"Skill(release-notes)"
]
}
}
List the skills one at a time. This is a good moment to open each skill's file and read what it declares under allowed-tools and what its hooks run, because that's what you're approving for unattended use.
Two details from the sandbox docs matter here. The sandbox is off by default and runs on macOS, Linux and WSL2. On native Windows, commands run unsandboxed. And by default, if the sandbox can't start, Claude Code runs commands without it. Setting sandbox.failIfUnavailable to true makes it exit at startup instead. If you're going to auto-allow sandboxed commands, I'd set that too, so "auto-allowed because sandboxed" can't quietly become "auto-allowed and not sandboxed" on a machine that's missing a dependency.
The docs say something different
As of today, the sandboxing docs still say autoAllowBashIfSandboxed defaults to true, so sandboxed commands keep running without prompts. The 2.1.325 release notes say sandboxed commands follow the normal permission flow by default and that you set the key to true to keep the old behavior. Both can't describe the same default.
My guess is the docs haven't caught up with the release. I can't confirm that. So set the key explicitly either way. An explicit value doesn't care which page is right, and it won't change under you the next time a default moves.
How I'd test it
Check your version with claude --version. If you're on 2.1.325 or later, trigger each scheduled job by hand once while you watch. You're looking for any prompt at all. Each one is a place the unattended run would have stopped.
Then add a completion check outside the agent. The cheapest version is a file or a ping the job writes as its last step, and a separate cron entry that alerts you if it's missing by a deadline. That catches this class of problem whatever the cause, including the next default change.
Where I could be wrong
I'm reading release notes, not the source. The practical effect depends on your permission mode and on what your existing allow rules already cover. If your Bash allow rules already match the commands your job runs, the sandbox change may not prompt you at all. It's also possible your setup never used the sandbox, in which case only the skills change applies.
And I may be overstating how many people are affected. Plenty of scheduled Claude Code use goes through CI with a fixed permission configuration that these defaults don't touch. If your jobs ran fine over the weekend on the new version, you're probably done.
What I'd actually do
Today: check the version, set sandbox.autoAllowBashIfSandboxed explicitly to whatever you want it to be, add Skill(name) rules for the skills your scheduled jobs use after reading what they declare, and run each job once by hand. This week: add the outside-the-agent completion check. Anything that runs unattended needs something that notices when it didn't finish.
Author
Lukas
@lukcombinator