New release
Claude Code 2.1.309: /rewind no longer undoes sed -i edits
Claude Code 2.1.309 runs sed -i as a shell command that /rewind does not undo, closes sandbox and permission gaps, and adds a trust check to ultrareview.
- Date
- Works with
- Claude Code
What’s new
Claude Code 2.1.309 came out on 22 October 2026. Its changelog says: "Changed `sed -i` to get the standard Bash prompt and run as written, not a simulated file-edit preview; like other Bash edits, it is no longer restored by `/rewind`".
The release also closes some sandbox and permission gaps. Sandboxed Bash on macOS and Linux no longer runs your shell's startup files outside the sandbox. Sandboxed commands and auto-accepted edits can no longer change the --mcp-config file. An Edit(path) deny rule now also blocks a Bash redirect to that path in some commands with a subshell.
The claude ultrareview command now needs workspace trust. It asks in a terminal and refuses elsewhere.
Why it matters
If you use /rewind to undo changes, a sed -i edit now counts as a terminal command. Rewind undoes it only in a file that Claude already edited with its own tools, so use Git to get back. The sandbox fixes close ways a command could get past your safety settings. Scripts that run claude ultrareview must add --trust-workspace.
How to try it
Run this command: see the command below. Then run claude --version. It should show 2.1.309 or later. Version 2.1.309 is on the default "latest" channel. The "stable" channel still gives 2.1.308.
claude updateRelated
Source
Checked against the source on 23 Oct 2026