Claude Code 2.1.309 changes ultrareview, sed -i and worktree behaviour
The 22 October 2026 release needs workspace trust for ultrareview, prompts for sed -i, and tightens sandbox and worktree behaviour. Scripts and CI jobs may need changes.
what changed
Claude Code 2.1.309 was published on 22 October 2026. These changes stand out:
claude ultrareviewnow needs workspace trust. Scripts must pass--trust-workspace, or setCLAUDE_CODE_DISABLE_ULTRAREVIEW_TRUST_CHECK=1.sed -inow gets the standard Bash prompt and runs as written. Before, it ran as a simulated file-edit preview. Like other Bash edits, it is no longer restored by/rewind.- In bypass permissions mode in the Desktop app and VS Code, dangerous
rmandrmdircommands are denied at once, with a hint to rewrite them. - Worktree creation no longer lets git fetch objects on demand.
- Sandboxed Bash on macOS and Linux no longer runs the shell’s startup files outside the sandbox before each command.
why it matters
The first change can break automation. Any CI job or script that calls claude ultrareview without the new flag will fail.
The sed -i change matters to people who relied on /rewind to undo it. That undo path is gone for this command. The sandbox fix closes a gap where startup files ran before the sandbox applied.
what we would do
- Search your scripts and CI config for
claude ultrareview, and add--trust-workspaceonly where you trust the checkout. - Prefer the flag over the environment variable, so the trust choice stays visible in the job.
- Tell your team that
sed -iedits are not covered by/rewind, and that they should commit before large edits. - Update Claude Code in a pilot repository first, and watch for new prompts before you roll it out.
sources
- Claude Code changelog, version 2.1.309 (Anthropic)
Drafted with Claude from the linked sources, reviewed by us.