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 ultrareview now needs workspace trust. Scripts must pass --trust-workspace, or set CLAUDE_CODE_DISABLE_ULTRAREVIEW_TRUST_CHECK=1.
  • sed -i now 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 rm and rmdir commands 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-workspace only 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 -i edits 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

Drafted with Claude from the linked sources, reviewed by us.